/* Public student player: age-neutral, mobile-first and separate from teacher/editor surfaces. */
body.public-mode:not(.public-live-presentation) {
  background:
    radial-gradient(circle at 8% 12%, rgba(233,185,67,.16) 0 72px, transparent 73px),
    radial-gradient(circle at 92% 18%, rgba(22,119,92,.12) 0 110px, transparent 111px),
    #f5f1e8;
}
.public-mode:not(.public-live-presentation) .public-worksheet-view {
  min-height: 100vh;
  padding: clamp(14px,3vw,38px) clamp(12px,3vw,28px);
}
.public-mode:not(.public-live-presentation) .public-sheet {
  width: min(100%,980px);
  min-height: calc(100vh - clamp(28px,6vw,76px));
  padding: clamp(24px,4vw,44px) clamp(18px,5vw,54px);
  border: 1px solid #dedbd2;
  border-radius: 24px;
  background: rgba(255,253,250,.97);
  box-shadow: 0 20px 60px rgba(36,48,47,.12);
}
.public-mode:not(.public-live-presentation) .public-sheet-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #e4e1d9;
}
.public-mode:not(.public-live-presentation) .public-participant-greeting {
  max-width: 62%;
  padding: 8px 12px;
  color: #596462;
  background: #edf6f2;
  border-radius: 999px;
  font-size: 14px;
  text-align: right;
}
.public-mode:not(.public-live-presentation) .public-participant-number {
  display: block;
  margin-top: 2px;
  color: #16775c;
  font-size: 11px;
}
.public-mode:not(.public-live-presentation) .public-content {
  padding-top: clamp(24px,4vw,38px);
}
.public-mode:not(.public-live-presentation) .public-content h2 {
  margin: 0 0 10px;
  font: 800 clamp(23px,4vw,30px)/1.25 Manrope,sans-serif;
}
.public-mode:not(.public-live-presentation) .public-word-search-instruction {
  margin: 0 0 24px;
  color: #626b69;
  font-size: 15px;
  line-height: 1.6;
}
.public-mode:not(.public-live-presentation) .public-actions .button {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
}
.public-mode:not(.public-live-presentation) .participant-gate {
  max-width: 520px;
  margin: clamp(32px,7vw,72px) auto;
}
.public-mode:not(.public-live-presentation) .participant-gate h1 {
  margin: 12px 0 9px;
  font-size: clamp(29px,5vw,38px);
}
.public-mode:not(.public-live-presentation) .participant-gate > p {
  font-size: 15px;
  line-height: 1.6;
}
.public-mode:not(.public-live-presentation) .participant-gate form {
  margin-top: 28px;
  padding: clamp(20px,4vw,30px);
  gap: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(36,48,47,.08);
}
.public-mode:not(.public-live-presentation) .participant-gate label {
  gap: 9px;
  font-size: 13px;
}
.public-mode:not(.public-live-presentation) .participant-gate input {
  min-height: 52px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 16px;
}
.public-mode:not(.public-live-presentation) .participant-gate .button-primary {
  min-height: 52px;
  font-size: 16px;
}

/* Multiple choice is the reference player for the new student experience. */
.public-mode:not(.public-live-presentation) .student-player.public-task-active > .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #16775c;
  font-size: 11px;
}
.public-mode:not(.public-live-presentation) .student-player.public-task-active > h1 {
  display: block;
  margin: 0 0 24px;
  color: #69716f;
  font: 700 14px/1.4 'DM Sans',sans-serif;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid {
  padding: clamp(18px,4vw,30px);
  border: 1px solid #dedbd2;
  border-radius: 18px;
  background: #faf9f5;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid h3 {
  margin: 0 0 20px;
  font: 800 clamp(20px,3.5vw,27px)/1.4 Manrope,sans-serif;
  text-align: left;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid > div {
  gap: 12px;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button {
  min-height: 62px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 24px;
  align-items: center;
  gap: 12px;
  color: #24302f;
  border: 2px solid #dedbd2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36,48,47,.04);
  font: 700 16px/1.45 'DM Sans',sans-serif;
  text-align: left;
  transition: border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button:hover {
  border-color: #89bca8;
  background: #f7fbf9;
  transform: translateY(-1px);
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button:focus-visible {
  outline: 3px solid rgba(22,119,92,.24);
  outline-offset: 3px;
}
.public-mode:not(.public-live-presentation) .student-player .student-answer-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #16775c;
  background: #e5f2ec;
  border-radius: 10px;
  font: 800 13px/1 Manrope,sans-serif;
}
.public-mode:not(.public-live-presentation) .student-player .student-answer-check {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease,transform .16s ease;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button.selected {
  color: #155f4b;
  border-color: #16775c;
  background: #e5f2ec;
  box-shadow: 0 8px 20px rgba(22,119,92,.12);
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button.selected .student-answer-index {
  color: #fff;
  background: #16775c;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button.selected .student-answer-check {
  color: #16775c;
  opacity: 1;
  transform: scale(1);
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid.incorrect button.selected {
  color: #8f302b;
  border-color: #c94940;
  background: #fbe8e6;
  box-shadow: 0 8px 20px rgba(201,73,64,.1);
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid.incorrect button.selected .student-answer-index {
  background: #c94940;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid.incorrect button.selected .student-answer-check {
  color: #c94940;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-navigation {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: minmax(100px,auto) minmax(140px,1fr) minmax(130px,auto);
  align-items: center;
  gap: 16px;
}
.public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-navigation .button {
  min-height: 50px;
  font-size: 15px;
}
.public-mode:not(.public-live-presentation) .student-player .student-progress {
  display: grid;
  gap: 8px;
}
.public-mode:not(.public-live-presentation) .student-player .student-progress > span {
  color: #596462;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.public-mode:not(.public-live-presentation) .student-player .student-progress > div {
  height: 8px;
  overflow: hidden;
  background: #e4e1d9;
  border-radius: 999px;
}
.public-mode:not(.public-live-presentation) .student-player .student-progress i {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg,#16775c,#2baa7d);
  border-radius: inherit;
  transition: width .2s ease;
}
.public-mode:not(.public-live-presentation) .student-player .student-feedback {
  min-height: 0;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d8d5cb;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.public-mode:not(.public-live-presentation) .student-player .student-feedback:empty {
  display: none;
}
.public-mode:not(.public-live-presentation) .student-player .student-feedback.success {
  color: #155f4b;
  border-color: #a8d2bc;
  background: #e5f2ec;
}
.public-mode:not(.public-live-presentation) .student-player .student-feedback.retry {
  color: #8a681d;
  border-color: #e5c978;
  background: #fbf0d8;
}
@media (max-width:700px) {
  .public-mode:not(.public-live-presentation) .public-sheet {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .public-mode:not(.public-live-presentation) .public-participant-greeting {
    max-width: 66%;
    padding: 7px 10px;
    font-size: 12px;
  }
  .public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid > div {
    grid-template-columns: 1fr !important;
  }
  .public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button {
    grid-row: auto !important;
    grid-column: 1 !important;
  }
  .public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-navigation {
    grid-template-columns: 1fr 1fr;
  }
  .public-mode:not(.public-live-presentation) .student-player .student-progress {
    grid-column: 1/-1;
    grid-row: 1;
  }
}
@media (max-width:420px) {
  .public-mode:not(.public-live-presentation) .public-sheet {
    padding: 22px 14px;
  }
  .public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid {
    padding: 16px 12px;
  }
  .public-mode:not(.public-live-presentation) .student-player .multiple-choice-play-grid button {
    padding: 12px;
    grid-template-columns: 34px minmax(0,1fr) 20px;
    gap: 9px;
  }
}
