@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Outfit:wght@400;500;600;650;700;750;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #252337;
  background: #f7f8fb;
  font-synthesis: none;
  --purple: #5931bd;
  --muted: #777888;
  --border: #e9eaf0;
  --red: #df3e58;
  --blue: #337bd5;
  --gold: #e6ad22;
  --green: #26936b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Outfit, sans-serif;
  text-wrap: balance;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}
h1 > span {
  color: var(--purple);
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
.brand {
  font-family: Outfit, sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: #4823a4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.brand span {
  font-size: 31px;
  color: #9d80e4;
}
.sidebar {
  width: 244px;
  background: white;
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 37px 0 31px;
  font-size: 13px;
  font-weight: 600;
}
.workspace small,
.profile small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}
.workspace-logo {
  height: 35px;
  width: 35px;
  border: 1px solid #e4def1;
  border-radius: 9px;
  color: var(--purple);
  display: grid;
  place-items: center;
  background: #f6f2ff;
  font-size: 16px;
}
.chevron {
  margin-left: auto;
  color: #9290a0;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9693a3;
  margin: 0 13px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin: 3px 0;
  width: 100%;
  color: #6f6c7c;
  font-weight: 500;
}
.nav-item > span:first-child {
  font-size: 19px;
  width: 20px;
  text-align: center;
}
.nav-item.active {
  color: var(--purple);
  background: #f0eafb;
  font-weight: 600;
}
.nav-item:hover {
  background: #f6f3fc;
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #289b74;
  flex-shrink: 0;
}
.nav-item .tiny-dot {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.free-note {
  padding: 20px 12px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 17px;
}
.free-note > span:first-child {
  font-size: 27px;
  color: #9c82d2;
  display: block;
  margin-bottom: 9px;
}
.free-note strong {
  font-size: 12px;
}
.free-note p {
  font-size: 11px;
  color: #8e889d;
  margin: 6px 0 14px;
}
.pill {
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 10px;
  display: inline-block;
  font-weight: 600;
}
.neutral {
  background: #f3f4f7;
  color: #747181;
}
.lavender {
  background: #eee8fb;
  color: #6c46bc;
}
.mint {
  background: #e4f6ed;
  color: #24855f;
}
.peach {
  background: #fff0e5;
  color: #c77a38;
}
.sky {
  background: #e9f2ff;
  color: #3e7acb;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 17px;
  padding-top: 24px;
  font-size: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  height: 33px;
  width: 33px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.purple {
  background: #ebe3fa;
  color: #6640b0;
}
.profile .icon-button {
  margin-left: auto;
}
.icon-button {
  padding: 6px;
  font-size: 19px;
  color: #8a8595;
}
.main {
  margin-left: 244px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  font-size: 12px;
}
.topbar > div > span {
  margin: 0 12px;
  color: #c2beca;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}
.connection {
  font-size: 11px;
  color: #64746c;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.connection i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #289b74;
}
.connection.offline {
  color: #a06b11;
}
.connection.offline i {
  background: #d69b22;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  white-space: nowrap;
}
.button.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 6px #492b8b16;
}
.button.primary:hover {
  background: #4823a4;
}
.button.outline {
  border: 1px solid #dddfe9;
  background: white;
}
.button.subtle {
  background: #f7f7fa;
  border: 1px solid var(--border);
}
.button.small {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 32px;
}
.button.dark {
  background: #231a3b;
  color: white;
}
.button.danger {
  background: #fff0f0;
  color: #b73045;
  border: 1px solid #f7d9dd;
}
.button.full {
  width: 100%;
}
.text-button {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  padding: 5px 0;
}
.content {
  max-width: 1500px;
  margin: auto;
  padding: 37px 38px 16px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  color: #85778e;
  margin-bottom: 10px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: white;
  border-radius: 11px;
  margin-bottom: 27px;
  padding: 22px 0;
}
.stats > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 21px;
  border-right: 1px solid var(--border);
}
.stats > div:last-child {
  border: 0;
}
.stat-icon {
  height: 39px;
  width: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}
.stats p {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.stats strong {
  display: block;
  color: #292534;
  font-family: Outfit, sans-serif;
  font-size: 25px;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.25;
}
.stats strong small {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 400;
  white-space: normal;
}
.stats .status-text {
  font-size: 19px;
  text-transform: capitalize;
}
.stats .status-text small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  text-transform: none;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 23px;
}
.panel,
.event-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.panel {
  padding: 23px;
}
.quiz-art {
  height: 242px;
  background: #4821a3;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 36px 34px;
}
.art-copy {
  position: relative;
  z-index: 1;
}
.art-copy > span:first-child {
  font-size: 8px;
  letter-spacing: 2px;
  opacity: 0.7;
}
.art-copy strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 650;
  margin-top: 12px;
}
.art-caption {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 15px;
}
.art-ring {
  position: absolute;
  border: 40px solid #5936ae;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  right: -70px;
  top: -125px;
}
.art-star {
  position: absolute;
  right: 163px;
  top: 35px;
  font-size: 70px;
  color: #b79ce6;
  transform: rotate(15deg);
}
.art-spark {
  position: absolute;
  font-size: 60px;
  right: 37px;
  bottom: 8px;
  color: #9d77d5;
}
.art-label {
  position: absolute;
  right: 26px;
  top: 29px;
  font-size: 7px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  opacity: 0.5;
}
.answer-art {
  position: absolute;
  right: 64px;
  top: 81px;
  display: grid;
  grid-template-columns: 70px 70px;
  gap: 9px;
  transform: rotate(-13deg);
}
.answer-art span {
  height: 59px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: white;
  box-shadow: 0 4px 0 #0002;
}
.red {
  background: var(--red);
}
.blue {
  background: var(--blue);
}
.gold {
  background: var(--gold);
}
.green {
  background: var(--green);
}
.event-details {
  padding: 23px 25px 0;
}
.event-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-title h2 {
  font-size: 23px;
  margin-top: 10px;
}
.event-details > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.event-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #81798c;
  margin: 19px 0 23px;
}
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 15px 0;
  font-size: 9px;
  color: #92889c;
}
.event-footer .tiny-dot {
  width: 5px;
  height: 5px;
  margin-right: 4px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-heading h2 {
  font-size: 16px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 7px;
}
.icon-badge {
  font-size: 18px;
  color: #7a7289;
}
.join-panel > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.qr-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 177px;
  height: 177px;
  margin: 23px auto 15px;
}
.pin-label {
  font-size: 10px;
  color: #9a91aa;
  display: block;
  text-align: center;
}
.game-pin {
  font-family: Outfit, sans-serif;
  font-size: 35px;
  font-weight: 650;
  text-align: center;
  letter-spacing: 5px;
  color: #392656;
  margin: 5px 0 19px;
  font-variant-numeric: tabular-nums;
}
.join-panel > small {
  display: block;
  text-align: center;
  font-size: 9px;
  margin-top: 13px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 23px;
  margin-top: 24px;
}
.question-preview {
  padding-bottom: 4px;
}
.count {
  font:
    500 10px "DM Sans",
    sans-serif;
  color: #7e6e96;
  background: #f3eff9;
  border-radius: 5px;
  padding: 3px 6px;
  margin-left: 5px;
}
.question-row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  gap: 13px;
}
.question-row:last-child {
  border: 0;
}
.question-number {
  font-size: 11px;
  color: #9788ad;
  background: #f6f3fb;
  width: 31px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.qcopy {
  flex: 1;
}
.qcopy strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
}
.qcopy small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
}
.qcopy small span {
  margin: 0 6px;
  color: #c1b9c8;
}
.duration {
  font-size: 10px;
  color: #8c8498;
  white-space: nowrap;
}
.row-arrow {
  color: #bbb1c4;
  font-size: 19px;
  margin-left: 10px;
}
.checklist > p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 18px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}
.check-circle {
  border: 1px solid #e5dfec;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}
.check-circle.done {
  color: #328a65;
  background: #e5f4eb;
  border-color: #e5f4eb;
}
.check-row strong {
  font-size: 10px;
  display: block;
  font-weight: 600;
}
.check-row small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.tip {
  display: flex;
  gap: 9px;
  background: #f6f3fc;
  border-radius: 6px;
  font-size: 10px;
  color: #8c79a7;
  padding: 12px;
  line-height: 1.6;
  margin-top: 20px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a29aa9;
  margin: 25px 0;
}
.page-footer i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c0b7cb;
  margin: 0 8px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-settings {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 23px;
}
.quiz-settings label {
  flex: 1;
}
label {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
input,
textarea {
  border: 1px solid #dddbe7;
  border-radius: 6px;
  padding: 11px;
  background: white;
  width: 100%;
  color: #30263e;
  margin-top: 8px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.library {
  padding: 5px 24px;
}
.library .qcopy strong {
  font-size: 14px;
}
.library .qcopy small {
  font-size: 11px;
}
.import-note {
  padding: 25px;
  color: #7b728c;
  font-size: 12px;
  max-width: 700px;
}
.import-note p {
  margin: 7px 0;
}
.live-layout {
  display: grid;
  grid-template-columns: 1fr 285px;
  gap: 24px;
}
.live-stage {
  background: #442098;
  border-radius: 14px;
  color: white;
  padding: 35px;
  min-height: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.live-stage h2 {
  font-size: 29px;
  margin: 25px 0;
}
.live-stage p {
  font-size: 12px;
  opacity: 0.75;
}
.live-stage .pin-label {
  color: #c6b5e8;
  margin-top: 30px;
}
.live-stage .game-pin {
  color: white;
  font-size: 50px;
}
.stage-star {
  font-size: 65px;
  color: #c9b1f4;
}
.lobby-count {
  font-size: 13px;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.timer {
  background: #ffffff22;
  color: white;
  border-radius: 50%;
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 25px 0;
}
.answer-tile {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 20px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  min-height: 83px;
  box-shadow: 0 4px 0 #0002;
}
.answer-tile > span {
  font-size: 27px;
}
.answer-tile.gold {
  color: #332409;
}
.answer-tile.dim {
  opacity: 0.3;
}
.answer-tile.selected {
  outline: 3px solid white;
  outline-offset: 2px;
}
.control-panel h2 {
  margin-bottom: 25px;
}
.control-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.control-stat strong {
  font-size: 30px;
  font-family: Outfit, sans-serif;
}
.control-stat span {
  font-size: 11px;
  color: var(--muted);
}
.controls {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.control-panel > .text-button {
  margin-top: 23px;
}
.search {
  max-width: 250px;
  margin: 0;
}
.participant-list {
  margin-top: 20px;
}
.participant {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
}
.participant small {
  margin-left: auto;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #9b8aac;
}
.empty > span {
  font-size: 45px;
  display: block;
  margin-bottom: 20px;
}
.empty p {
  font-size: 12px;
  margin-top: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #92869e;
  font-weight: 500;
  font-size: 11px;
  padding: 12px 15px;
  background: #f9f7fc;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid var(--border);
}
.rank {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}
.rank.top {
  background: #f1ebfc;
  color: var(--purple);
  border-radius: 50%;
}
.muted {
  font-size: 12px;
  margin: 16px 0;
}
.guide {
  max-width: 800px;
}
.guide h2 {
  margin: 22px 0 12px;
}
.guide h2:first-child {
  margin-top: 0;
}
.guide p,
.guide li {
  font-size: 14px;
  line-height: 1.8;
  color: #7d718b;
}
.guide li {
  padding-bottom: 10px;
}
.loading {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 45px;
  font-weight: 700;
  color: var(--purple);
}
.loading span {
  font-size: 13px;
  margin-top: 20px;
}
.login-page,
.player-page {
  min-height: 100dvh;
  background: #4823a4;
  padding: 35px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: white;
}
.login-page > .brand,
.player-page .brand {
  color: white;
}
.login-card,
.player-card {
  background: white;
  color: #30223e;
  border-radius: 18px;
  padding: 35px;
  width: 100%;
  max-width: 430px;
  margin: auto;
  text-align: center;
}
.login-symbol {
  font-size: 45px;
  color: var(--purple);
  display: block;
  margin-bottom: 14px;
}
.login-card h1,
.player-card h1 {
  font-size: 30px;
}
.login-card > p,
.player-card > p {
  font-size: 12px;
  color: #90829e;
  margin: 12px 0 27px;
}
.login-card form,
.player-card form {
  text-align: left;
}
.login-card label,
.player-card label {
  margin: 17px 0;
}
.login-card .button,
.player-card .button {
  margin-top: 10px;
  min-height: 46px;
}
.login-card > a {
  display: block;
  font-size: 11px;
  color: var(--purple);
  margin-top: 25px;
}
.login-footer,
.player-page > small {
  font-size: 11px;
  color: #c9b4ed;
  margin-top: 25px;
}
.error {
  color: #b82e45;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
}
.error:empty {
  display: none;
}
.player-page {
  background: #4921a3;
}
.player-card {
  margin: 65px auto;
}
.player-card input {
  font-size: 16px;
  padding: 15px;
}
.player-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 900px;
  font-size: 12px;
}
.player-top .connection {
  color: #d5e5db;
}
.waiting {
  margin: auto;
  text-align: center;
  padding: 50px 10px;
}
.waiting h1 {
  font-size: 36px;
  margin: 25px 0 15px;
}
.waiting p {
  color: #d5c6ef;
  font-size: 16px;
}
.waiting-note {
  background: #ffffff12;
  padding: 25px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 30px;
}
.waiting-shapes {
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 35px;
}
.waiting-shapes span:nth-child(1) {
  color: #f56c80;
}
.waiting-shapes span:nth-child(2) {
  color: #72b8ff;
}
.waiting-shapes span:nth-child(3) {
  color: #ffd270;
}
.waiting-shapes span:nth-child(4) {
  color: #73e4b6;
}
.player-question {
  width: 100%;
  max-width: 850px;
  margin: auto;
  padding: 35px 0;
}
.player-question h1 {
  font-size: 33px;
  margin: 30px 0;
}
.player-question .answer-tile {
  min-height: 110px;
  font-size: 20px;
}
.player-hint {
  text-align: center;
  font-size: 12px;
  color: #cfbdeb;
}
.player-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  max-width: 900px;
  font-size: 11px;
  color: #cab7e7;
  padding: 20px 0 0;
}
.recorded {
  text-align: center;
  background: #ffffff13;
  border-radius: 12px;
  padding: 40px 20px;
  margin: 30px 0;
}
.recorded > span {
  display: inline-grid;
  place-items: center;
  background: #34b58a;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 30px;
}
.recorded h2 {
  margin: 20px 0 10px;
}
.recorded p {
  font-size: 13px;
  color: #dacdf1;
}
.reveal-result {
  text-align: center;
  font-size: 18px;
}
.reveal-result p {
  font-size: 13px;
  color: #d6c8ee;
  margin-top: 12px;
}
.final-score {
  background: #ffffff15;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  margin: 30px auto;
  max-width: 250px;
  color: #d6c8ee;
}
.final-score strong {
  font-family: Outfit, sans-serif;
  font-size: 60px;
  color: white;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 28px;
  color: #30223e;
  max-width: 550px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #21123577;
}
dialog h2 {
  margin-bottom: 20px;
}
dialog p {
  font-size: 13px;
  color: #8c7b99;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 25px;
}
dialog label {
  margin: 16px 0;
}
.option-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.option-input input[type="radio"] {
  width: 18px;
  accent-color: var(--purple);
  margin: 0;
}
.option-input > span {
  color: white;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.option-input input:last-child {
  flex: 1;
  margin: 0;
  width: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #282031;
  color: white;
  border-radius: 9px;
  padding: 14px 23px;
  font-size: 13px;
  z-index: 50;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 45px;
  }
  .quiz-art {
    height: 270px;
  }
  .overview-grid {
    grid-template-columns: 1fr 330px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 380px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 16px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats > div {
    padding: 0 12px;
    gap: 8px;
  }
  .stats strong small {
    display: block;
    margin-top: 3px;
  }
  .overview-grid {
    grid-template-columns: 1fr 265px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 295px;
  }
  .quiz-art {
    padding: 32px 25px;
  }
  .art-copy strong {
    font-size: 32px;
  }
  .answer-art {
    right: 35px;
    grid-template-columns: 55px 55px;
    top: 95px;
  }
  .answer-art span {
    height: 48px;
    font-size: 23px;
  }
  .art-star {
    right: 90px;
    font-size: 50px;
    top: 30px;
  }
  .event-meta {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .stats .status-text {
    font-size: 16px;
  }
  .stat-icon {
    width: 31px;
    height: 33px;
  }
  .page-heading > .button {
    padding: 12px;
  }
  .live-layout {
    grid-template-columns: 1fr 240px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 180px;
    padding: 27px 12px;
  }
  .main {
    margin-left: 180px;
  }
  .nav-item {
    font-size: 11px;
    gap: 8px;
    padding: 11px 9px;
  }
  .workspace {
    font-size: 11px;
  }
  .workspace small {
    font-size: 9px;
  }
  .free-note {
    padding: 15px 5px;
  }
  .top-actions {
    gap: 12px;
  }
  .topbar > div:first-child {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    height: 68px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
  }
  .stats > div {
    border: 0;
    padding: 0;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .join-panel {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading > .button {
    font-size: 10px;
  }
  .live-layout {
    grid-template-columns: 1fr;
  }
  .control-panel .controls {
    grid-template-columns: 1fr 1fr;
  }
  .control-stat {
    display: inline-flex;
    width: 49%;
    border: 0;
  }
  .control-panel .tip {
    margin: 15px 0;
  }
  .quiz-settings {
    flex-wrap: wrap;
  }
  .quiz-settings label {
    min-width: 200px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    overflow: auto;
  }
  .sidebar .brand {
    font-size: 29px;
    margin-right: 8px;
  }
  .sidebar .brand span {
    font-size: 22px;
  }
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    width: auto;
    margin: 0;
    padding: 9px;
    font-size: 0;
    gap: 0;
  }
  .nav-item > span:first-child {
    font-size: 22px;
  }
  .nav-item .tiny-dot {
    display: none;
  }
  .nav-item.active {
    font-size: 11px;
    gap: 5px;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 18px;
  }
  .top-actions .avatar {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading > .button,
  .page-heading > .actions {
    margin-top: 18px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 300px;
  }
  .stats {
    padding: 18px;
    gap: 23px 12px;
  }
  .stats p {
    font-size: 9px;
  }
  .stats strong {
    font-size: 23px;
  }
  .stats .status-text {
    font-size: 17px;
  }
  .overview-grid,
  .bottom-grid {
    gap: 18px;
  }
  .quiz-art {
    height: 235px;
    padding: 32px 22px;
  }
  .art-copy strong {
    font-size: 34px;
  }
  .answer-art {
    right: 23px;
    grid-template-columns: 50px 50px;
    gap: 7px;
    top: 92px;
  }
  .answer-art span {
    height: 46px;
  }
  .art-star {
    right: 80px;
    font-size: 43px;
  }
  .art-label {
    right: 10px;
  }
  .art-copy > span:first-child {
    font-size: 6px;
  }
  .art-caption {
    max-width: 150px;
    font-size: 9px;
  }
  .event-details {
    padding: 20px 19px 0;
  }
  .event-title h2 {
    font-size: 22px;
  }
  .event-meta {
    font-size: 9px;
  }
  .event-footer {
    font-size: 8px;
  }
  .panel {
    padding: 20px;
  }
  .question-row {
    gap: 10px;
  }
  .qcopy strong {
    font-size: 11px;
  }
  .check-row strong {
    font-size: 12px;
  }
  .check-row small {
    font-size: 11px;
  }
  .checklist > p {
    font-size: 11px;
  }
  .page-footer {
    display: block;
    font-size: 8px;
    line-height: 2;
  }
  .page-footer > span {
    display: block;
  }
  .live-stage {
    padding: 23px 17px;
    min-height: 400px;
  }
  .live-stage h2 {
    font-size: 24px;
  }
  .answer-grid {
    gap: 10px;
  }
  .answer-tile {
    padding: 17px 12px;
    font-size: 14px;
    gap: 9px;
  }
  .answer-tile > span {
    font-size: 21px;
  }
  .participant {
    gap: 8px;
    font-size: 12px;
  }
  .participant small {
    display: none;
  }
  .participant .pill {
    margin-left: auto;
  }
  .panel-heading .search {
    max-width: 160px;
  }
  .player-page,
  .login-page {
    padding: 23px 17px;
    padding-bottom: max(23px, env(safe-area-inset-bottom));
  }
  .player-card,
  .login-card {
    padding: 28px 22px;
  }
  .player-top .brand {
    font-size: 30px;
  }
  .player-top .brand span {
    font-size: 20px;
  }
  .player-top {
    flex-wrap: wrap;
  }
  .player-top > span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-question h1 {
    font-size: 27px;
  }
  .player-question .answer-tile {
    min-height: 100px;
    font-size: 17px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .waiting h1 {
    font-size: 30px;
  }
  .player-bottom {
    font-size: 10px;
  }
  .search {
    font-size: 12px;
  }
  .quiz-settings label {
    min-width: 100%;
  }
  table {
    font-size: 11px;
  }
  td,
  th {
    padding: 12px 7px;
  }
  .guide p,
  .guide li {
    font-size: 13px;
  }
  .event-footer .text-button {
    font-size: 10px;
  }
}

.participant-leaderboard {
  background: white;
  color: #30223e;
  border-radius: 10px;
  padding: 22px;
  margin: 28px 0 12px;
  text-align: left;
}
.participant-leaderboard .panel-heading {
  margin-bottom: 16px;
}
.participant-leaderboard .panel-heading span {
  font-size: 11px;
  color: #877a94;
}
.participant-leaderboard ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-bottom: 1px solid #eee8f3;
  font-size: 13px;
  min-height: 44px;
}
.leaderboard-row:last-child {
  border-bottom: 0;
}
.leaderboard-row.is-you {
  background: #f0eafa;
  border-radius: 5px;
}
.leaderboard-rank {
  font-variant-numeric: tabular-nums;
  width: 28px;
  font-weight: 600;
}
.leaderboard-name {
  flex: 1;
  overflow-wrap: anywhere;
  min-width: 0;
}
.leaderboard-name small {
  font-size: 10px;
}
.leaderboard-row strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.leaderboard-note {
  font-size: 10px !important;
  color: #8b7a9c !important;
  margin: 13px 0 0 !important;
  line-height: 1.5;
}
.participant-leaderboard .your-standing {
  border-top: 1px solid #e3d8ed;
  margin-top: 12px;
  padding-top: 12px;
}
.waiting:has(.participant-leaderboard) {
  width: 100%;
  max-width: 650px;
  padding-top: 30px;
}
.waiting .final-score {
  margin: 22px auto;
  padding: 20px;
}
.waiting .final-score strong {
  font-size: 44px;
}
.player-bottom {
  color: #d5c6ef;
}
.player-hint,
.reveal-result p,
.recorded p,
.waiting p {
  color: #d5c6ef;
}
.waiting-note {
  font-size: 14px;
}
.reveal-result {
  font-size: 17px;
}
.player-question {
  padding-top: 25px;
}
.player-question:has(.participant-leaderboard) {
  margin-top: 0;
}
.player-question:has(.participant-leaderboard) h1 {
  font-size: 28px;
  margin: 23px 0;
}
.player-question:has(.participant-leaderboard) .answer-tile {
  min-height: 70px;
}
.player-question:has(.participant-leaderboard) .answer-grid {
  margin: 20px 0;
}

/* Rally is the product brand; institutional marks identify the organizer. */
.host-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6d6478;
}
.iitd-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(22%) sepia(68%) saturate(2220%)
    hue-rotate(338deg) brightness(80%) contrast(92%);
}
.crdt-emblem {
  display: block;
  width: 47px;
  height: 47px;
  overflow: hidden;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}
.crdt-emblem img {
  display: block;
  width: 146%;
  height: 146%;
  max-width: none;
  object-fit: contain;
  transform: translate(-15.75%, -15.75%);
}
.host-brand-label {
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
.host-brand-label small {
  display: block;
  font-size: 10px;
  color: #93879c;
}
.sidebar-bottom > .host-brand {
  justify-content: flex-start;
  padding: 20px 10px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
  gap: 10px;
}
.sidebar-bottom .iitd-logo {
  width: 34px;
  height: 34px;
}
.sidebar-bottom .crdt-emblem {
  width: 39px;
  height: 39px;
}
.login-card .host-brand,
.player-card .host-brand {
  border-top: 1px solid var(--border);
  padding-top: 21px;
  margin-top: 24px;
}
.login-card .host-brand-label,
.player-card .host-brand-label {
  display: none;
}
.session-settings dl {
  margin: 18px 0 13px;
}
.session-settings dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f1edf5;
  font-size: 11px;
  line-height: 1.5;
}
.session-settings dl > div:last-child {
  border: 0;
}
.session-settings dt {
  color: #8c8198;
}
.session-settings dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
.question-preview .panel-heading {
  padding-bottom: 3px;
}
.question-preview .question-row {
  padding: 18px 0;
}
.question-preview .qcopy strong {
  font-size: 11px;
}
.login-card,
.player-card {
  margin: auto;
}
.player-card h1 {
  margin-bottom: 24px;
}
.login-card h1 {
  margin-bottom: 24px;
}
.login-page > .brand,
.player-page > .brand {
  flex-shrink: 0;
}
.participant-leaderboard {
  color: #30223e;
}
.player-question:has(.participant-leaderboard) h1 {
  font-size: 28px;
}
@media (max-width: 950px) {
  .join-panel {
    display: block;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .sidebar-bottom > .host-brand {
    gap: 6px;
    padding: 16px 2px;
  }
  .sidebar-bottom .host-brand-label {
    font-size: 10px;
  }
  .sidebar-bottom .iitd-logo {
    width: 27px;
    height: 27px;
  }
  .sidebar-bottom .crdt-emblem {
    width: 31px;
    height: 31px;
  }
}
@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .join-panel {
    display: block;
  }
  .join-panel .qr-wrap {
    margin-top: 18px;
  }
  .join-panel .game-pin {
    font-size: 31px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-bottom .host-brand-label {
    display: none;
  }
}
@media (max-width: 640px) {
  .sidebar {
    gap: 6px;
  }
  .sidebar > .brand {
    font-size: 30px;
    margin-right: auto;
  }
  .sidebar > .brand span {
    font-size: 22px;
  }
  .sidebar .nav-item.active {
    font-size: 0;
    padding: 9px;
  }
  .sidebar .nav-item.active > span {
    font-size: 22px;
  }
  .sidebar .nav-item {
    padding: 9px 8px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .player-top .brand {
    font-size: 30px;
  }
  .player-top .brand span {
    font-size: 22px;
  }
  .player-top {
    align-items: center;
  }
  .player-top > span:last-child {
    font-size: 11px;
  }
  .player-question h1 {
    font-size: 25px;
  }
  .participant-leaderboard {
    padding: 17px 13px;
  }
  .player-question:has(.participant-leaderboard) .answer-tile {
    font-size: 14px;
    min-height: 75px;
    flex-direction: row;
    align-items: center;
  }
  .participant-leaderboard .leaderboard-row {
    font-size: 12px;
    gap: 8px;
  }
  .player-card,
  .login-card {
    margin: 48px auto;
  }
  .session-settings dl > div {
    font-size: 12px;
  }
  .question-preview .qcopy strong {
    font-size: 12px;
  }
}

/* Matched visible emblem sizes and a clear participant join form. */
.host-brand {
  --host-logo-size: 48px;
  gap: 19px;
}
.host-brand .iitd-emblem,
.host-brand .crdt-emblem {
  display: block;
  width: var(--host-logo-size);
  height: var(--host-logo-size);
  overflow: hidden;
  flex-shrink: 0;
  background: white;
}
.host-brand .iitd-logo {
  display: block;
  width: 107.5269%;
  height: 107.5269%;
  max-width: none;
  transform: translate(-3.5%, -3.5%);
}
.host-brand .crdt-emblem img {
  width: 145.709%;
  height: 145.709%;
  transform: translate(-15.685%, -16.133%);
}
.host-brand-divider {
  display: block;
  width: 1px;
  height: 34px;
  background: #e8e3ee;
  flex-shrink: 0;
}
.sidebar-bottom > .host-brand {
  --host-logo-size: 34px;
  gap: 11px;
}
.sidebar-bottom > .host-brand .host-brand-divider {
  height: 25px;
}
.login-card > .host-brand,
.player-card > .host-brand {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
}
.player-card .field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: #8c8198;
  margin: 9px 0 13px;
  text-align: left;
}
#join-form label[for="participant-name"] {
  margin: 17px 0 0;
}
#join-form .button.primary:disabled {
  background: #e9e5ef;
  color: #9b92a7;
  box-shadow: none;
  cursor: default;
}
#join-form .button.primary:not(:disabled) {
  background: var(--purple);
  color: white;
}
#join-form .button.primary:not(:disabled):hover {
  background: #4823a4;
}
@media (max-width: 950px) {
  .sidebar-bottom > .host-brand {
    --host-logo-size: 28px;
    gap: 8px;
  }
}

.emoji-picker {
  margin: 21px 0 17px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.emoji-picker legend {
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  margin-bottom: 11px;
}
.emoji-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.emoji-choice {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}
.emoji-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  padding: 0;
}
.emoji-choice > span {
  display: grid;
  place-items: center;
  height: 44px;
  width: 100%;
  background: #f8f6fb;
  border: 2px solid transparent;
  border-radius: 9px;
  font-size: 26px;
  line-height: 1;
}
.emoji-choice input:checked + span {
  background: #eee6ff;
  border-color: var(--purple);
}
.emoji-choice input:focus-visible + span {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.emoji-choice:hover > span {
  background: #f0eafa;
}
.leaderboard-emoji {
  font-size: 23px;
  line-height: 1;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.result-emoji {
  font-size: 21px;
  margin-right: 9px;
  vertical-align: middle;
}
.recorded.submission-recorded > .submission-icon {
  background: #ffffff16;
  color: #e3d5fa;
  border: 1px solid #ffffff30;
  border-radius: 14px;
  width: 58px;
  height: 58px;
}
.submission-icon svg {
  width: 32px;
  height: 32px;
}
.recorded.submission-recorded {
  background: #ffffff0d;
  border: 1px solid #ffffff20;
}
.feedback {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 25px;
  border: 1px solid;
}
.feedback.correct {
  background: #e6f6ed;
  color: #125c36;
  border-color: #79c49b;
}
.feedback.incorrect {
  background: #fff0f1;
  color: #9b2435;
  border-color: #eda3ad;
}
.feedback.unanswered {
  background: #f2edf8;
  color: #554569;
  border-color: #ccbddf;
}
.feedback .feedback-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 25px;
  flex-shrink: 0;
  line-height: 1;
}
.feedback h2 {
  font-size: 23px;
  margin: 0 0 4px;
}
.feedback p {
  font-size: 13px;
  color: inherit;
  margin: 0;
  opacity: 1;
  line-height: 1.5;
}
.next-question-note {
  text-align: center;
  color: #d5c6ef;
  font-size: 12px;
  margin: 13px 0 0;
}
.answer-tile .answer-copy {
  font-size: inherit;
  flex: 1;
  min-width: 0;
}
.answer-tile .answer-marker {
  font-size: 26px;
  flex-shrink: 0;
}
.option-status {
  display: block;
  font-size: 11px;
  color: inherit;
  margin-top: 7px;
  font-weight: 600;
  line-height: 1.4;
}
.answer-tile.answer-correct {
  background: #e0f4e8;
  color: #145f38;
  border: 2px solid #67b98b;
  box-shadow: none;
  opacity: 1;
}
.answer-tile.answer-incorrect {
  background: #ffe7ea;
  color: #98243a;
  border: 2px solid #e48c9a;
  box-shadow: none;
  opacity: 1;
}
.answer-tile.answer-muted {
  background: #ffffff0d;
  color: #b9a9d1;
  border: 2px solid #ffffff10;
  box-shadow: none;
  opacity: 1;
}
@media (max-width: 640px) {
  .emoji-options {
    gap: 7px;
  }
  .emoji-choice > span {
    font-size: 25px;
  }
  .feedback {
    padding: 16px;
    gap: 12px;
  }
  .feedback h2 {
    font-size: 21px;
  }
  .feedback p {
    font-size: 12px;
  }
  .leaderboard-emoji {
    font-size: 21px;
    width: 25px;
  }
  .player-card:has(.emoji-picker) {
    margin: 32px auto;
  }
  .answer-tile .answer-copy {
    font-size: inherit;
  }
  .answer-tile .answer-marker {
    font-size: 24px;
  }
}
.reconnect-notice {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  background: #fff4da;
  color: #705116;
  border: 1px solid #e6cd8c;
  border-radius: 9px;
  text-align: left;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.5;
}
.reconnect-notice strong {
  font-weight: 700;
}
.reconnect-notice span {
  flex: 1;
  min-width: 200px;
}
.reconnect-notice button {
  font-size: 12px;
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
}
.player-card > p {
  font-size: 13px;
  color: #877b96;
  line-height: 1.7;
  margin: 15px 0 20px;
}
.report-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid var(--border);
}
.archive-row:last-child {
  border: 0;
}
.archive-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.archive-info strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.archive-info small {
  font-size: 10px;
  color: var(--muted);
}
.archive-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.archive-actions .button {
  font-size: 10px;
}
.archive-row .pill {
  font-size: 9px;
}
@media (max-width: 760px) {
  .archive-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .archive-actions {
    justify-content: flex-start;
  }
  .report-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .report-actions .button {
    font-size: 11px;
    padding: 11px 12px;
  }
}

/* Event controls and a clean, read-only output for projection/streaming. */
.playback-mode {
  display: flex;
  gap: 8px;
}
.playback-mode .button {
  flex: 1;
  min-width: 0;
  padding: 11px 8px;
}
.mode-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.control-panel .primary-controls {
  min-height: 48px;
  margin: 20px 0 8px;
  grid-template-columns: 1fr;
}
.playback-status {
  padding: 14px 10px;
  border-radius: 8px;
  background: #f1ecfa;
  color: #4921a3;
  text-align: center;
  font-size: 13px;
}
.session-safety {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 20px;
}
.session-safety summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 0;
}
.session-safety p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
}
.session-safety .button {
  margin-top: 12px;
}
.session-safety summary:focus-visible {
  outline: 2px solid #6a43c9;
  outline-offset: 4px;
}
.live-stage.leaderboard-stage {
  justify-content: flex-start;
  padding: 24px;
  min-height: 0;
}
.leaderboard-stage .participant-leaderboard {
  margin: 16px 0 0;
  padding: 18px;
}
.leaderboard-stage .participant-leaderboard h2 {
  font-size: 25px;
  margin: 0;
}
.leaderboard-stage .leaderboard-row {
  padding: 10px 8px;
  min-height: 48px;
}
.stage-break {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.stage-correct {
  display: flex;
  gap: 10px;
  text-align: left;
  background: #e0f4e8;
  color: #16633b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 18px;
}
.stage-correct > span:first-child {
  font-weight: 700;
}
.stage-lobby #qr {
  background: white;
  border: 10px solid white;
  border-radius: 12px;
  margin: 16px auto 0;
}
.stage-paused {
  background: #ffffff22;
  border-radius: 6px;
  padding: 10px;
  opacity: 1 !important;
}
.player-reveal {
  width: 100%;
  max-width: 650px;
  margin: auto;
}
.player-reveal .reveal-result {
  margin: 18px 0 0;
}
.player-reveal .participant-leaderboard {
  margin-top: 16px;
  padding: 16px;
}
.player-reveal .leaderboard-row {
  padding: 8px 6px;
}
.presentation-page {
  min-height: 100dvh;
  background: #f7f6fb;
  padding: 20px 4vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.presentation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.presentation-header .brand {
  font-size: 42px;
}
.presentation-header .host-brand {
  margin: 0;
}
.header-join {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 18px 8px 8px;
}
.header-join canvas {
  display: block;
  width: 132px;
  height: 132px;
}
.header-join strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 28px;
  color: var(--purple);
}
.stage-thanks {
  margin-top: 28px;
  text-align: center;
}
.stage-thanks p {
  font-size: clamp(16px, 1.5vw, 24px);
  opacity: 0.85;
}
.presentation-stage {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  padding: clamp(24px, 4vh, 64px);
  min-height: 0;
  flex: 1;
}
.presentation-stage h2 {
  font-size: clamp(28px, 3.4vw, 64px);
  text-wrap: balance;
}
.presentation-stage .answer-tile {
  font-size: clamp(18px, 2vw, 34px);
  min-height: 90px;
}
.presentation-stage .stage-top {
  font-size: clamp(16px, 1.6vw, 26px);
}
.presentation-stage.leaderboard-stage {
  padding: 24px 4vw;
}
.presentation-stage .participant-leaderboard {
  width: 100%;
  max-width: 1100px;
  margin: 16px auto 0;
}
.presentation-stage .participant-leaderboard h2 {
  font-size: clamp(26px, 3vw, 42px);
}
.presentation-stage .leaderboard-row {
  font-size: clamp(18px, 2vw, 32px);
  min-height: 55px;
  padding: 10px 16px;
}
.presentation-stage .stage-correct {
  max-width: 1100px;
  width: 100%;
  margin: 16px auto 0;
  font-size: clamp(16px, 1.6vw, 25px);
}
.presentation-page footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.presentation-reconnecting {
  text-align: center;
  color: #79580e;
  margin: 0;
}
:fullscreen .presentation-header #fullscreen {
  visibility: hidden;
}
@media (min-width: 1100px) and (min-height: 700px) {
  .live-layout .leaderboard-stage {
    max-height: calc(100dvh - 230px);
  }
}
@media (max-width: 600px) {
  .presentation-page {
    padding: 16px;
  }
  .presentation-header {
    gap: 10px;
    flex-wrap: wrap;
  }
  .presentation-header .host-brand-label {
    display: none;
  }
  .header-join canvas {
    width: 96px;
    height: 96px;
  }
  .presentation-header .brand {
    font-size: 32px;
  }
  .presentation-stage .leaderboard-row {
    font-size: 16px;
  }
  .player-reveal .feedback h2 {
    font-size: 22px;
  }
}
