/* Public student player: age-neutral, mobile-first and separate from teacher/editor surfaces. */
body.public-mode:not(.public-live-presentation) {
  min-height: 100vh;
  min-height: 100dvh;
  zoom: 1;
  background:
    radial-gradient(circle at 3% 8%, #f7df96 0 110px, transparent 111px),
    radial-gradient(circle at 98% 32%, #c7e6db 0 170px, transparent 171px),
    radial-gradient(circle at 6% 95%, #ecddd9 0 130px, transparent 131px),
    #f6f3eb;
}
.public-mode:not(.public-live-presentation) .public-worksheet-view {
  min-height: 0;
  padding: clamp(12px,2.5vh,24px) clamp(12px,3vw,28px);
  background: transparent;
}
.public-mode:not(.public-live-presentation) .public-sheet {
  width: min(100%,980px);
  min-height: 0;
  padding: clamp(20px,3vh,32px) clamp(18px,5vw,54px);
  border: 1px solid #d7e5dc;
  border-radius: 24px;
  background: #fffefa;
  box-shadow: 0 16px 48px rgba(46,81,67,.10);
}
.public-mode:not(.public-live-presentation) .public-sheet-head {
  padding: 14px 16px;
  border: 1px solid #d4e7dc;
  border-radius: 16px;
  background: linear-gradient(110deg,#e7f4ec,#f7f3dc);
  flex-wrap: wrap;
}
.public-mode:not(.public-live-presentation) .public-sheet-head .brand-copy {
  display: inline-grid;
  flex: 0 0 52px;
}
.public-mode:not(.public-live-presentation) .public-participant-greeting {
  max-width: 62%;
  padding: 8px 12px;
  color: #596462;
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  font-size: 14px;
  text-align: right;
  overflow-wrap: anywhere;
}
.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(20px,3vh,30px);
}
.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(20px,4vh,36px) auto 0;
}
.public-mode:not(.public-live-presentation) .participant-gate::before {
  content: "";
  width: 84px;
  height: 66px;
  display: block;
  margin: 0 auto 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 66'%3E%3Ccircle cx='42' cy='33' r='32' fill='%23f9e7ab'/%3E%3Cg stroke='%2316775c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M42 23Q30 16 18 22v29q12-6 24 1 12-7 24-1V22q-12-6-24 1Z' fill='%23fffefa'/%3E%3Cpath d='M42 23v29M25 29l10 1m-10 7 10 1m14-8 10-1m-10 9 10-1' fill='none'/%3E%3Cpath d='M69 8v10m-5-5h10' stroke='%23b88320'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.public-mode:not(.public-live-presentation) .participant-gate h1 {
  margin: 12px 0 9px;
  font: 800 clamp(29px,5vw,38px)/1.25 Manrope,sans-serif;
}
.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: clamp(18px,3vh,28px);
  padding: clamp(18px,3vh,26px) clamp(20px,4vw,30px);
  gap: clamp(12px,2vh,16px);
  border-radius: 18px;
  background: #f0f8f3;
  border-color: #cde1d5;
  box-shadow: 0 14px 35px rgba(36,48,47,.08);
}
.public-mode:not(.public-live-presentation) .participant-gate label {
  gap: 9px;
  font-size: 14px;
}
.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;
}

/* One control size for text gaps, choices and term placement, including hints. */
.public-preview :is(.answer-gap,.answer-choice,.text-assignment-zone,.answer-with-hint) {
  box-sizing: border-box;
  width: 180px;
  min-width: 0;
  max-width: calc(100% - 8px);
  min-height: 48px;
  height: auto;
  margin: 4px;
  vertical-align: middle;
  font: 600 16px/1.4 'DM Sans',sans-serif;
}
.public-preview :is(.answer-gap,.answer-choice,.text-assignment-zone) {
  padding: 10px 12px;
  border-radius: 8px;
}
.public-preview .answer-gap {
  border: 1px solid #d99b94;
}
.public-preview .answer-choice { padding-right: 30px; }
.public-preview .answer-with-hint {
  display: inline-flex;
  align-items: stretch;
}
.public-preview .answer-with-hint > :is(.answer-gap,.text-assignment-zone) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px 46px 10px 12px;
}
.public-preview + .table-assignment-bank .table-assignment-chip {
  min-height: 48px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font: 600 16px/1.4 'DM Sans',sans-serif;
}
.public-preview .answer-hint {
  width: 32px;
  height: 32px;
  right: 7px;
  font: 800 16px/1 'DM Sans',sans-serif;
}
.public-preview .answer-hint-tooltip {
  width: min(340px,calc(100vw - 24px));
  max-width: none;
  max-height: min(320px,calc(100dvh - 24px));
  padding: 14px 16px;
  left: 0;
  top: 0;
  bottom: auto;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-radius: 10px;
  font: 500 14px/1.6 'DM Sans',sans-serif;
  transform: none;
}

/* 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-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: 0;
    border-radius: 20px;
  }
  .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-navigation {
    grid-template-columns: 1fr 1fr;
  }
  .public-mode:not(.public-live-presentation) .student-player .student-progress {
    grid-column: 1/-1;
    grid-row: 1;
  }
}
/* Shared play surfaces retain their task-specific input and evaluation states. */
.public-mode:not(.public-live-presentation) .public-content > :is(.instruction,.public-word-search-instruction) {
  padding: 12px 16px;
  color: #485c54;
  background: #f8f1dc;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.public-mode:not(.public-live-presentation) :is(.public-preview,.public-crossword-clues section,.word-search-list,.public-scramble-row,.ordering-play-item) {
  padding: 16px;
  border: 1px solid #d6e3db;
  border-radius: 14px;
  background: #f0f7f2;
}
.public-mode:not(.public-live-presentation) .public-preview {
  background: #fff;
  line-height: 2;
}
.public-mode:not(.public-live-presentation) .public-table-task {
  border-radius: 14px;
  border: 1px solid #d6e3db;
}
.public-mode:not(.public-live-presentation) .public-content :is(.button-primary,.ordering-play-item button) {
  border-radius: 12px;
  box-shadow: 0 3px 0 #10573f;
}
.public-mode:not(.public-live-presentation) .ordering-play-item button {
  min-width: 44px;
  min-height: 44px;
  color: #12684f;
  background: #fffefa;
  border: 1px solid #a7cbb9;
  font-size: 18px;
  cursor: pointer;
}
.public-mode:not(.public-live-presentation) .public-content .ordering-play-item button {
  box-shadow: 0 2px 0 #c2d8cb;
}
.public-mode:not(.public-live-presentation) .public-content .ordering-play-item button:disabled {
  cursor: default;
  box-shadow: none;
}
.public-mode:not(.public-live-presentation) .public-content .button-primary:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #10573f;
}
.public-mode:not(.public-live-presentation) .public-content :is(button,input,select):focus-visible {
  outline: 3px solid #16775c;
  outline-offset: 3px;
}
.public-mode:not(.public-live-presentation) .public-content button:disabled {
  box-shadow: none;
}
.public-mode:not(.public-live-presentation) .participant-gate #participantError {
  font-size: 12px;
}
@media (max-width:700px) {
  .public-mode:not(.public-live-presentation) .public-sheet-head { padding: 12px; }
  .public-mode:not(.public-live-presentation) .public-content :is(input,select) { font-size: 16px; }
  .public-mode:not(.public-live-presentation) .public-scramble-row { flex-wrap: wrap; }
  .public-mode:not(.public-live-presentation) .public-scramble-row input { width: 100%; }
}
@media (max-width:600px) {
  .public-mode:not(.public-live-presentation) .public-crossword-clues { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .public-mode:not(.public-live-presentation) .public-content *,
  .public-mode:not(.public-live-presentation) .public-content *::before,
  .public-mode:not(.public-live-presentation) .public-content *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width:420px) {
  .public-mode:not(.public-live-presentation) .public-sheet {
    padding: 22px 14px;
  }
}
