.day-week { margin: 0 32px 5px; }
.day-dialog[data-answer="true"] { width: min(610px, calc(100% - 28px)); }
.day-dialog[data-answer="true"] .dialog-card { padding-block: 19px 22px; }
.day-activity, .answer-form { margin-bottom: 12px; }
.day-answers-link { margin-top: 3px; }
.dialog-message { white-space: pre-line; }
.activity-hint { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.activity-stage {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #435880;
  border-radius: 13px;
  background: #152642;
  text-align: left;
}
.activity-stage h3, .poll-results h3, .feed-insights h2 { margin: 0; font: 700 1.25rem/1.25 var(--display); }
.activity-stage > .gold-button, .activity-stage > .quiet-button { justify-self: start; }
.activity-choices, .composer-fields, .poll-form, .poll-results, .private-note { display: grid; gap: 8px; }
.activity-choices .quiet-button { justify-content: flex-start; text-align: left; }
.activity-choices button:disabled { cursor: default; }
.activity-choices .quiz-correct { border-color: #9bd2af; color: #c2f1d1; opacity: 1; }
.activity-choices .quiz-wrong { border-color: #ffb4a6; color: #ffd2c8; opacity: 1; }
.activity-code {
  margin: 0;
  overflow-x: auto;
  padding: 11px;
  border-radius: 7px;
  background: #0c182d;
  color: #e8eeff;
  font-size: .8125rem;
  line-height: 1.5;
}
.oracle-stage { justify-items: center; text-align: center; }
.oracle-ball {
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  border: 1px solid #a3b9ff;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 26%, #8ca4ff, #325296 55%, #243c68 80%);
  font-size: 2.15rem;
  box-shadow: 0 0 20px #7e9cff55, inset 0 0 17px #b9ccff4a;
  cursor: pointer;
}
.oracle-spin { animation: inside-oracle .55s ease-out; }
@keyframes inside-oracle {
  35% { transform: scale(1.12) rotate(-8deg); filter: brightness(1.26); }
  72% { transform: scale(1.02) rotate(6deg); }
}
.poll-form fieldset, .emoji-group { display: grid; gap: 7px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.poll-form legend { padding: 0; margin-bottom: 5px; font-weight: 700; }
.poll-choice {
  display: flex;
  align-items: center;
  min-height: 41px;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #506487;
  border-radius: 8px;
  color: var(--ivory);
  cursor: pointer;
}
.poll-choice:has(input:checked) { border-color: var(--gold); color: var(--gold); }
.poll-choice input { margin: 0; accent-color: var(--gold); }
.poll-form > button, .private-note > button { justify-self: start; }
.poll-results { padding-top: 4px; }
.poll-bar { display: grid; gap: 4px; color: var(--muted); font-size: .875rem; }
.poll-bar progress { width: 100%; height: 7px; accent-color: var(--gold); }
.poll-example {
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-left: 2px solid #a4b7f1;
  border-radius: 3px;
  background: #223755;
}
.poll-example p { margin-top: 3px; white-space: pre-wrap; }
.emoji-palette { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.emoji-palette button { min-height: 38px; min-width: 0; padding: 2px; font-size: 1.13rem; }
.emoji-palette button:disabled, .emoji-group > button:disabled { cursor: default; }
.emoji-group > button { justify-self: start; }
.bingo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bingo-board button { min-height: 62px; padding: 5px; text-align: center; overflow-wrap: anywhere; }
.bingo-board .bingo-win { color: #2d2117; background: var(--gold); border-color: var(--gold); }
.drawing-clock { color: var(--gold); font-weight: 750; font-variant-numeric: tabular-nums; }
.drawing-canvas { display: block; width: 100%; height: auto; border: 1px solid #e5be80; border-radius: 8px; background: #fff7e9; touch-action: none; }
.activity-stage input[type=color] { width: 40px; height: 38px; padding: 3px; border: 1px solid #506487; border-radius: 6px; background: #192947; }
.answer-field select {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 8px 11px;
  border: 1px solid #506487;
  border-radius: 9px;
  background: #121f38;
  color: var(--ivory);
  font: 400 1rem/1.45 system-ui, sans-serif;
}
.composer-fields .answer-field input[type=file] { padding: 7px; }
.composer-fields .answer-field input::file-selector-button {
  margin-right: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  color: #221c15;
  background: var(--gold);
  cursor: pointer;
}
.composer-preview { display: block; max-width: 100%; max-height: 140px; margin-top: 8px; border-radius: 7px; object-fit: contain; }
.words-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.finale-stage { position: relative; overflow: hidden; justify-items: center; }
.finale-stage > .gold-button, .finale-stage > .quiet-button { justify-self: center; z-index: 1; }
.finale-sparkle { font-size: 2rem; color: var(--gold); }
.finale-active { animation: finale-burst 1.3s ease-out; }
.finale-particles {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
  z-index: 100;
}
.finale-particles i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * .7);
  border-radius: 1px;
  background: var(--gold);
  opacity: 0;
  animation: finale-piece var(--duration) var(--delay) cubic-bezier(.32, .08, .68, .9) both;
}
.finale-particles i:nth-child(4n + 2) { background: #8cb5ff; }
.finale-particles i:nth-child(4n + 3) { background: #f5b9df; }
.finale-particles i:nth-child(4n + 4) { background: #9be5c2; }
.finale-particles i:nth-child(5n) { height: var(--size); border-radius: 50%; }
@keyframes finale-piece {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  12%, 85% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(var(--spin)); opacity: 0; }
}
@keyframes finale-burst {
  0% { transform: translateY(12px) scale(.2); opacity: .15; }
  36% { transform: translateY(-8px) scale(1.8); opacity: 1; filter: brightness(1.5); }
  72% { transform: scale(.95); }
}
.feed-insights {
  display: grid;
  gap: 8px;
  margin: 0 0 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #182844;
}
.feed-insights .activity-stage { padding: 0; border: 0; background: none; }
.cloud-words { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 13px; }
.cloud-words span { color: var(--gold); font-size: calc(1rem + var(--weight, 0) * .19rem); font-weight: 700; }
.cloud-words span:nth-child(3n + 2) { color: #a9c5ff; }
.cloud-words span:nth-child(3n + 3) { color: #f4dcfc; }
.answer-copy { min-width: 0; flex: 1; }
.card-meta { margin: 5px 0; color: var(--gold); font-size: .875rem; }
.card-answer[data-emoji="true"] { font-size: 1.65rem; letter-spacing: .1em; }
.card-picture { display: block; max-width: 100%; max-height: 300px; border-radius: 8px; margin: 7px 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.card-actions .quiet-button { min-height: 36px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-grid .answer-card { align-items: start; }
.answers-section:has(.gallery-grid) { width: min(980px, 100%); }
.answer-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.answer-categories .quiet-button { min-height: 39px; }

@media (max-width: 620px) {
  .emoji-palette { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr; }
  .activity-stage { padding: 10px; }
  .day-week { margin-inline: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .oracle-spin, .finale-active { animation: none; }
  .finale-particles i {
    top: var(--rest-y);
    opacity: .8;
    animation: none;
  }
}
