:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #26324a;
  background: #f6f5f0;
  font-synthesis: none;
  --ink: #26324a;
  --green: #236653;
  --muted: #636b77;
  --line: #e3e4dc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 24px;
}
a {
  color: inherit;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 28px;
}
.brand {
  text-decoration: none;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -1px;
}
.topbar > span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
  color: var(--muted);
}
header {
  position: relative;
  overflow: hidden;
  padding: 54px 42px;
  background: #183f35;
  color: #fff;
  border-radius: 28px;
  background-image: radial-gradient(
    circle at 90% 15%,
    #72965b55,
    transparent 45%
  );
}
header::after {
  content: "✦";
  position: absolute;
  font-size: 260px;
  right: 35px;
  top: 0;
  color: #e7c97326;
  transform: rotate(10deg);
  pointer-events: none;
}
h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(36px, 6vw, 65px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  max-width: 750px;
  margin: 18px 0;
}
h1 span {
  color: #d8e9a8;
}
header > p {
  color: #d0dfd6;
  font-size: 17px;
  position: relative;
  z-index: 1;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 8px 0 12px;
}
h3 {
  margin: 0 0 10px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #507563;
}
header .eyebrow {
  color: #c5dfb7;
}
.card {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin: 22px 0;
  box-shadow: 0 5px 18px #26324a04;
}
#registration {
  max-width: 660px;
  margin: 28px auto;
}
#joinForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}
#joinForm label:first-child,
#joinForm label:nth-child(3),
#joinForm > p,
#joinForm > button {
  grid-column: 1/-1;
}
#joinForm label:nth-child(2) {
  grid-column: 1/-1;
}
#joinStatus:empty {
  display: none;
}
.welcome-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.welcome-tags span {
  font-size: 12px;
  color: #56634f;
  background: #f0f4e9;
  border-radius: 30px;
  padding: 7px 11px;
}
.soft {
  background: #edf2e7;
  border-color: #dfe7d6;
}
.pad {
  padding: 18px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
label {
  display: block;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 700;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid #d4d8cf;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fcfcfa;
  color: var(--ink);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
button {
  border: 1px solid #d4d8cf;
  border-radius: 12px;
  background: white;
  padding: 12px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
  min-height: 46px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px #26324a0d;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #a57d22;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
#join {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-top: 10px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.points {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  background: #fff4d5;
  color: #735619;
  border-radius: 14px;
  padding: 14px;
}
.progress {
  background: #edf0e7;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin-top: 20px;
}
.progress > div {
  height: 100%;
  background: #82ad68;
  width: 0;
  transition: width 0.2s;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 34px;
  padding: 6px;
  border-radius: 16px;
  background: #eaece4;
}
nav button {
  flex: 1;
  border-color: transparent;
  background: transparent;
  white-space: nowrap;
}
nav button.active {
  background: #fff;
  color: #205b48;
  box-shadow: 0 2px 6px #26324a0a;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.game-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  min-height: 176px;
  position: relative;
}
.game-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  width: 54px;
  height: 54px;
  background: #edf2e7;
  border-radius: 16px;
  margin-bottom: 18px;
}
.game-card b {
  display: block;
  font-size: 16px;
  margin: 8px 0;
  letter-spacing: -0.3px;
}
.game-card small {
  color: var(--muted);
  font-size: 12px;
}
.game-card::after {
  content: "↗";
  position: absolute;
  right: 22px;
  top: 22px;
  color: #82907a;
}
.game-wordhunt > span,
.game-temple > span {
  background: #fff1cf;
}
.game-heroes > span,
.game-history > span {
  background: #eeeafd;
}
.cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  background: #f1f5eb;
  border-radius: 18px;
  padding: 24px;
}
.cloud button {
  border: 0;
  background: transparent;
  font-weight: 750;
  color: #236653;
  padding: 4px;
}
.cloud button:nth-child(3n) {
  color: #566a9f;
}
.cloud button:nth-child(4n) {
  color: #94702f;
}
.rank {
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  font-weight: 600;
}
#selectedWord {
  margin: 15px 0;
}
.options {
  display: grid;
  gap: 10px;
}
.status {
  min-height: 20px;
  color: #31634f;
  line-height: 1.6;
}
.presence {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  background: #ffffff0c;
  color: #e2fff4;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.presence-dot {
  width: 8px;
  height: 8px;
  background: #b4dd8a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b4dd8a15;
}
.presence.is-offline .presence-dot {
  background: #c6cdd0;
  box-shadow: none;
}
header .presence-hint {
  font-size: 11px;
  color: #b3c7b9;
  margin-top: 9px;
}
.admin-shell {
  max-width: 850px;
}
.admin-header h1 {
  font-size: 44px;
}
.moderation-card h3 {
  font-size: 22px;
}
footer {
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 40px 0 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  main {
    padding: 16px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header {
    padding: 34px 24px;
  }
  header::after {
    right: -70px;
  }
  h1 {
    letter-spacing: -1.5px;
  }
  .topbar > span {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .card {
    padding: 22px;
  }
  nav button {
    flex: 1 1 40%;
  }
}
@media (max-width: 380px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 20px;
  }
  .points {
    font-size: 16px;
  }
  .game-card {
    min-height: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.session-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.session-time {
  color: #667366;
  font-size: 12px;
}
.conference-card {
  background: #eef3e9;
}
.session-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.schedule-item {
  border: 1px solid #d7dfd0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff85;
}
.schedule-item b {
  display: block;
  font-size: 13px;
}
.schedule-item span {
  display: block;
  font-size: 12px;
  color: #63715d;
  margin-top: 6px;
}
.schedule-item small {
  display: inline-block;
  color: #24553f;
  background: #dceac9;
  border-radius: 20px;
  padding: 4px 8px;
  margin-top: 9px;
}
.schedule-active {
  border: 2px solid #527943;
  background: #fff;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 450;
  line-height: 1.6;
  grid-column: 1/-1;
}
.check-label input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 3px 0;
}
.recover-panel,
.account-panel {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  min-height: 32px;
}
.recovery-notice {
  background: #fff5d9;
  border-color: #e9d49d;
}
.recovery-notice code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 20px;
  letter-spacing: 1px;
  background: #fff;
  padding: 20px;
  border: 1px dashed #a98b43;
  border-radius: 10px;
  margin: 18px 0;
}
.danger {
  border-color: #a95143;
  color: #8a3027;
}
.game-instructions {
  font-size: 16px;
  line-height: 1.6;
}
.game-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.game-actions .status {
  flex: 1 1 200px;
}
.crossword-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 1fr);
  gap: 24px;
  align-items: start;
}
.crossword-board {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  background: #23372e;
  border: 3px solid #23372e;
  gap: 1px;
  max-width: 650px;
  height: auto;
}
.crossword-cell,
.crossword-block {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  min-width: 0;
}
.crossword-block {
  background: #23372e;
}
.crossword-cell input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: clamp(12px, 2.5vw, 25px);
  font-weight: 700;
  padding: 20% 0 0;
  margin: 0;
  color: #253c30;
  text-transform: uppercase;
}
.crossword-cell input:focus {
  outline: 3px solid #b68a27;
  outline-offset: -3px;
  z-index: 2;
  background: #ffedbb90;
}
.cell-number {
  position: absolute;
  left: 8%;
  top: 1%;
  font-size: clamp(7px, 1.2vw, 10px);
  line-height: 1.2;
  pointer-events: none;
  z-index: 1;
  color: #4d594a;
}
.word-active {
  background: #e6efdc;
}
.clue-lists h4 {
  margin: 0 0 10px;
  font-size: 14px;
}
.clue-lists section + section {
  margin-top: 20px;
}
.clue-button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 9px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 450;
  background: transparent;
  min-height: 36px;
}
.selected-clue {
  background: #e5eedb;
  color: #254f37;
  font-weight: 700;
}
.wordsearch-board {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  max-width: 550px;
  border: 1px solid #d3ddca;
  border-radius: 12px;
  overflow: hidden;
  padding: 6px;
  background: #f5f8f0;
  gap: 2px;
}
.letter-cell {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: clamp(12px, 3vw, 22px);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}
.letter-start {
  background: #ffe8ab;
  outline: 2px solid #ad852d;
}
.letter-found {
  background: #cde3b9;
  color: #244735;
}
.word-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.word-target {
  border-radius: 20px;
  padding: 6px 10px;
  background: #eff2e9;
  font-size: 12px;
  font-weight: 650;
}
.word-found {
  text-decoration: line-through;
  background: #d2e6bf;
}
.matching-board {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.matching-column {
  display: grid;
  gap: 12px;
  grid-auto-rows: 1fr;
}
.match-item {
  text-align: left;
  line-height: 1.5;
  min-height: 65px;
}
.match-selected {
  outline: 3px solid #b68a27;
  background: #fff4d8;
}
.match-paired {
  background: #eaf2e0;
  border-color: #7d9c69;
}
.tile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr);
  gap: 24px;
  align-items: start;
}
.tile-board {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 3px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #ccd6c4;
  border-radius: 10px;
  overflow: hidden;
  max-width: 500px;
}
.picture-tile {
  aspect-ratio: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  background-repeat: no-repeat;
  padding: 0;
}
.picture-tile:hover {
  transform: none;
}
.tile-selected {
  outline: 4px solid #a9791c;
  outline-offset: -4px;
}
.tile-number {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 11px;
  background: #ffffffc9;
  color: #2e4838;
  border-radius: 4px;
  padding: 2px 5px;
}
.temple-preview {
  margin: 0;
}
.temple-preview img {
  width: 100%;
  border-radius: 12px;
}
.temple-preview figcaption {
  font-size: 12px;
  color: #63715d;
  text-align: center;
  margin-top: 8px;
}
.timeline-list {
  padding: 0;
  list-style-position: inside;
  counter-reset: trail;
}
.timeline-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f3f6ec;
  border: 1px solid #dfe6d4;
  border-radius: 14px;
  margin: 12px 0;
  counter-increment: trail;
}
.timeline-event::before {
  content: counter(trail);
  border-radius: 50%;
  background: #dce7cc;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.timeline-event > span {
  flex: 1;
  line-height: 1.5;
  font-size: 14px;
}
.timeline-controls {
  display: flex;
  gap: 5px;
}
.timeline-controls button {
  padding: 6px 12px;
}
.quiz-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 650px;
}
.quiz-options legend {
  font-size: 13px;
  color: #667366;
  margin-bottom: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid #d8e0d0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.quiz-option:has(input:checked) {
  background: #eaf2df;
  border-color: #5c7f43;
}
.quiz-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #28614b;
}
.listening-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.listening-word {
  padding: 24px 10px;
  background: #f1f5eb;
  border-color: #d2dec5;
}
.listening-word[aria-pressed="true"] {
  background: #d5e6c4;
  border-color: #5f7f4d;
}
.listening-word[aria-pressed="true"]::before {
  content: "✓ ";
  color: #315c3a;
}
.quiet-mode header {
  background: #2c4a44;
}
.quiet-mode .points {
  background: #eef1e9;
  color: #63715d;
}
.privacy-copy {
  max-width: 720px;
  margin: 24px auto;
  line-height: 1.8;
}
.privacy-copy h2 {
  margin-top: 28px;
}
.privacy-copy li {
  margin: 8px 0;
}
.brand {
  letter-spacing: -0.7px;
  font-size: 21px;
}
@media (max-width: 750px) {
  .session-schedule {
    grid-template-columns: 1fr;
  }
  .schedule-item {
    padding: 12px;
  }
  .crossword-layout {
    grid-template-columns: 1fr;
  }
  .clue-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .clue-lists section + section {
    margin: 0;
  }
  .tile-layout {
    grid-template-columns: minmax(0, 2fr) minmax(80px, 1fr);
    gap: 12px;
  }
  .matching-board {
    gap: 10px;
  }
  .match-item {
    padding: 10px;
    font-size: 13px;
  }
  .topbar {
    gap: 8px;
  }
  .brand {
    font-size: 19px;
  }
  .topbar > span {
    font-size: 8px;
  }
}
@media (max-width: 420px) {
  .listening-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline-controls {
    flex-direction: column;
  }
  .game-actions {
    gap: 10px;
  }
  .crossword-cell input {
    font-size: 14px;
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  header,
  .topbar,
  #conference,
  #registration,
  .account-panel,
  nav,
  #dashboard > .card,
  #recoveryNotice,
  footer,
  #games,
  #cloud,
  #rank,
  #printListening {
    display: none !important;
  }
  #dashboard,
  #listen {
    display: block !important;
  }
  #listen .card {
    border: 0;
    box-shadow: none;
  }
  button {
    box-shadow: none;
  }
  #reflect {
    display: none;
  }
  .listening-word {
    border: 1px solid #777 !important;
    background: #fff !important;
    color: #000 !important;
    min-height: 80px;
  }
  .listening-word[aria-pressed="true"]::before {
    content: "";
  }
}

.topbar {
  flex-wrap: wrap;
}
.crossword-board {
  width: 100%;
}
.crossword-cell input {
  line-height: 1;
}
#challenge {
  scroll-margin-top: 16px;
}
#selectedWord button {
  margin: 5px;
}
.listening-missions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.listening-mission {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  padding: 18px 14px;
  min-height: 110px;
  background: #f5f7ef;
  line-height: 1.4;
}
.listening-mission > span {
  font-size: 24px;
}
.listening-mission[aria-pressed="true"] {
  border: 2px solid #527943;
  background: #e7efdd;
  box-shadow: 0 3px 10px #26324a08;
}
.listening-activity {
  background: #f7f8f3;
  border: 1px solid #e0e6d6;
  border-radius: 18px;
  padding: 24px;
}
.listening-activity > p {
  line-height: 1.8;
  color: #52614e;
  max-width: 750px;
}
.listening-activity h3 {
  scroll-margin-top: 22px;
}
.listening-activity h3:focus {
  outline: none;
}
.listening-activity label {
  margin-top: 22px;
}
.notebook-actions {
  margin-top: 22px;
}
.listening-activity details {
  margin-top: 18px;
}
.listening-activity textarea {
  background: #fff;
}
#listeningSketch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720/340;
  border: 1px solid #c7d4bd;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  margin-bottom: 12px;
}
.submission-receipt {
  margin: 20px 0;
  padding: 18px 20px;
  background: #e8f2dc;
  border: 1px solid #95b67b;
  border-radius: 14px;
  color: #244735;
}
.submission-receipt p {
  line-height: 1.7;
  margin: 8px 0 0;
}
.submission-receipt:focus {
  outline: 2px solid #527943;
  outline-offset: 3px;
}
.admin-shell {
  max-width: 1250px;
}
.admin-header {
  padding: 32px;
}
.admin-header h1 {
  font-size: 38px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.admin-stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9f4;
}
.admin-stat:first-child {
  background: #edf4ee;
  border-color: #bfd6c4;
}
.admin-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.1;
  color: var(--green);
}
.admin-stat-label {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-top: 6px;
}
.admin-stat small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 650px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}
.moderation-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 280px);
  gap: 20px;
  margin-top: 18px;
}
.moderation-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.moderation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.moderation-table caption {
  padding: 14px 16px;
  text-align: left;
  color: #65715e;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.moderation-table th {
  background: #edf2e7;
  padding: 13px 14px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #52614e;
  white-space: nowrap;
}
.moderation-table td {
  padding: 14px;
  border-top: 1px solid #e4e8de;
  vertical-align: top;
  line-height: 1.5;
}
.moderation-table tbody tr:hover {
  background: #fafbf7;
}
.moderation-word {
  min-width: 230px;
  max-width: 290px;
}
.moderation-word strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.moderation-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.moderation-actions button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 11px;
  border-radius: 8px;
}
.moderation-actions .approve-action {
  background: #24634f;
  color: #fff;
  border-color: #24634f;
}
.word-state {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: #edf0e8;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.state-pending {
  background: #fff1ce;
  color: #765a1d;
}
.state-approved {
  background: #dceccf;
  color: #315b31;
}
.state-review {
  background: #f9e1ce;
  color: #844514;
}
.state-hidden {
  background: #e9e9ed;
  color: #62616c;
}
.moderation-pagination {
  margin-top: 18px;
  font-size: 13px;
}
.moderation-table time {
  display: block;
  min-width: 90px;
  font-size: 12px;
  color: #63715d;
}
.moderation-table td:nth-child(3) {
  min-width: 110px;
  overflow-wrap: anywhere;
}
.moderation-table td:nth-child(5) {
  min-width: 105px;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .listening-missions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .moderation-table {
    min-width: 900px;
  }
}
@media (max-width: 500px) {
  .listening-missions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .listening-mission {
    min-height: 90px;
    padding: 14px;
  }
  .listening-activity {
    padding: 17px;
  }
  .moderation-toolbar {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-header h1 {
    font-size: 30px;
  }
  .notebook-actions {
    align-items: stretch;
  }
  .notebook-actions > button {
    flex: 1 1 100%;
  }
}
@media print {
  .listening-missions,
  #returnToGames,
  #undoSketch,
  #clearSketch,
  .notebook-actions,
  #actionDetails:not([open]) {
    display: none !important;
  }
  .listening-activity {
    border: 0;
    background: #fff;
    padding: 0;
  }
  #listeningSketch {
    max-height: 300px;
  }
  .listening-notebook .muted {
    font-size: 11px;
  }
  .listening-activity textarea {
    min-height: 100px;
  }
  .listening-activity details[open] {
    display: block;
  }
  #wordReceipt {
    display: none !important;
  }
}
.word-action-done {
  background: #e4eed9;
  color: #315b35;
  border-color: #9db88c;
  opacity: 1 !important;
}
.cloud .word-appreciated::after {
  content: " ✓";
  font-size: 0.65em;
  color: #47723c;
}

.crossword-help {
  padding: 16px 18px;
  border: 1px solid #d4dfc7;
  background: #f1f6e9;
  border-radius: 12px;
  margin: 18px 0;
}
.crossword-help h4 {
  margin: 0 0 12px;
}
.crossword-help .word-targets {
  margin: 12px 0 0;
}
.given-letter {
  background: #e2eacc;
}
.given-letter input {
  color: #56703f;
  font-weight: 800;
}
.crossword-cell input[readonly] {
  cursor: default;
}
.sketch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.sketch-palette {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sketch-swatch {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #b7c7ac;
}
.sketch-swatch[aria-pressed="true"] {
  outline: 3px solid #253f36;
  outline-offset: 3px;
}
.sketch-color-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 !important;
  font-size: 12px;
}
input[type="color"] {
  width: 48px;
  height: 38px;
  padding: 3px;
  margin: 0;
  cursor: pointer;
}
.line-matching {
  position: relative;
  gap: clamp(70px, 13vw, 150px);
  isolation: isolate;
}
.matching-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.connection-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}
.connection-correct {
  stroke: #2875d1;
  fill: #2875d1;
}
.connection-wrong {
  stroke: #ce4545;
  fill: #ce4545;
}
.connection-pending {
  stroke: #93a6b5;
  fill: #93a6b5;
  stroke-dasharray: 6 6;
}
.connection-line {
  fill: none;
}
.match-item {
  position: relative;
}
.match-left {
  touch-action: none;
}
.match-left::after,
.match-right::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border: 2px solid #a9b9a0;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
}
.match-left::after {
  right: -8px;
}
.match-right::before {
  left: -8px;
}
.match-correct,
.match-correct:disabled {
  background: #e5effc;
  border-color: #2875d1;
  color: #224b83;
  opacity: 1;
  cursor: default;
}
.match-wrong {
  background: #fff0ed;
  border-color: #ce4545;
  color: #923a32;
}
.match-correct::after,
.match-correct::before {
  border-color: #2875d1;
  background: #2875d1;
}
.match-wrong::after,
.match-wrong::before {
  border-color: #ce4545;
  background: #ce4545;
}
.matching-status {
  min-height: 48px;
  line-height: 1.7;
}
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}
.confetti-piece {
  position: absolute;
  display: block;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-fly 1.35s ease-out both;
  will-change: transform, opacity;
}
@keyframes confetti-fly {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  45% {
    transform: translate(calc(var(--travel-x) * 0.65), var(--rise))
      rotate(var(--spin));
    opacity: 1;
  }
  100% {
    transform: translate(var(--travel-x), var(--fall))
      rotate(calc(var(--spin) * 2));
    opacity: 0;
  }
}
@media (max-width: 500px) {
  .line-matching {
    gap: 55px;
  }
  .line-matching .match-item {
    padding: 12px 9px;
    font-size: 12px;
  }
  .sketch-palette {
    gap: 9px;
  }
  .sketch-swatch {
    width: 33px;
    height: 33px;
    min-height: 33px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-layer {
    display: none !important;
  }
}
@media print {
  .sketch-toolbar,
  .confetti-layer {
    display: none !important;
  }
}
.announcement-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: #1f3655f2;
  display: grid;
  place-items: center;
  color: #29374f;
}
.announcement-panel {
  width: min(760px, 100%);
  padding: 36px;
  border-radius: 28px;
  background: #fff9e8;
  border: 3px solid #f1ce7e;
  box-shadow: 0 16px 80px #07122266;
  text-align: center;
}
.announcement-icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.announcement-panel h2 {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.25;
}
.announcement-message {
  padding: 22px 0;
  border-top: 1px solid #e4d7b4;
  text-align: left;
}
.announcement-message h3 {
  font-size: 24px;
  line-height: 1.4;
}
.announcement-message p {
  font-size: 20px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.announcement-panel > p:last-child {
  font-size: 13px;
  color: #7e6c45;
  line-height: 1.6;
}
.announcement-active {
  overflow: hidden !important;
}
.announcement-active .sky-token,
.announcement-active .hero-doodles span {
  animation-play-state: paused;
}
.announcement-active .confetti-layer {
  display: none;
}
.announcement-screen:focus {
  outline: none;
}
.announcement-draft {
  background: #fff4d7;
  border: 2px dashed #d1ad58;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
.announcement-draft > p,
.announcement-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.announcement-recipients {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #d2ddcd;
  border-radius: 12px;
  padding: 12px;
  background: #f8faf4;
}
.announcement-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #e4e9dd;
  font-weight: 500;
  line-height: 1.6;
  min-height: 44px;
}
.announcement-choice input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 3px 0;
}
.announcement-admin-message {
  border: 1px solid #dce1d5;
  border-left: 5px solid #d5ac55;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.announcement-admin-message h4 {
  margin: 0 0 10px;
  font-size: 19px;
}
.announcement-admin > p {
  line-height: 1.7;
}
#announcementPreviewAudience {
  font-weight: 700;
}
.announcement-screen [hidden] {
  display: none !important;
}
@media (max-width: 500px) {
  .announcement-screen {
    padding: 12px;
    place-items: start center;
  }
  .announcement-panel {
    padding: 22px 18px;
    margin: 16px 0;
    border-radius: 22px;
  }
  .announcement-message h3 {
    font-size: 22px;
  }
  .announcement-message p {
    font-size: 18px;
  }
  .announcement-choice {
    font-size: 13px;
  }
  .announcement-admin-message {
    padding: 16px;
  }
}
@media print {
  .announcement-screen {
    position: static;
    background: white;
    color: black;
  }
  .announcement-active main {
    display: none;
  }
}
