:root {
  --play-paper: #faf9f5;
}
body.play-page {
  --paper: var(--play-paper);
  margin: 0;
  background: var(--play-paper);
  color: #193f4c;
  font:
    1rem/1.6 Arial,
    sans-serif;
}
body.campus-page.play-page,
body.play-page.legacy-game {
  background: var(--play-paper);
}
.play-page *,
.play-page *::before,
.play-page *::after {
  box-sizing: border-box;
}
.play-page [hidden] {
  display: none !important;
}
.play-main {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0 72px;
}
.play-page a {
  color: inherit;
  text-underline-offset: 4px;
}
.play-main h1 {
  font:
    400 clamp(38px, 5vw, 60px) / 1.1 Georgia,
    serif;
  letter-spacing: -1.4px;
  margin: 24px 0 16px;
}
.play-main h2 {
  font:
    400 26px/1.2 Georgia,
    serif;
  margin: 0 0 16px;
}
.play-main p {
  max-width: 66ch;
}
.play-back {
  display: inline-block;
  font-size: 1rem;
}
.puzzle-heading {
  max-width: 760px;
  margin-bottom: 32px;
}
.puzzle-heading p {
  color: #52636a;
}
.play-main button,
.play-main input,
.play-main select {
  font: inherit;
  color: inherit;
}
.play-main button,
.play-main select {
  min-height: 44px;
  border: 1px solid #b9c5c4;
  border-radius: 3px;
  background: #fff;
  padding: 9px 16px;
}
.play-main button {
  cursor: pointer;
}
.play-main button:hover:not(:disabled) {
  background: #e9eeeb;
}
.play-main button:disabled {
  opacity: 0.5;
  cursor: default;
}
.play-main .play-primary {
  background: #1b4b5a;
  border-color: #1b4b5a;
  color: #fff;
}
.play-main .play-primary:hover:not(:disabled) {
  background: #123744;
}
.play-main :focus-visible {
  outline: 3px solid #a47636;
  outline-offset: 3px;
}
.puzzle-toolbar {
  display: flex;
  gap: 16px 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid #d7dcd8;
  border-bottom: 1px solid #d7dcd8;
}
.puzzle-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.puzzle-toolbar input[type='checkbox'] {
  width: 19px;
  height: 19px;
  accent-color: #1b4b5a;
}
.puzzle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: start;
}
.letter-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 28px;
}
.letter-tiles span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 60px;
  border: 1px solid #c5cfc9;
  border-bottom: 3px solid #b3c2b9;
  background: #fff;
  border-radius: 4px;
  font:
    32px Georgia,
    serif;
}
.word-stats {
  display: flex;
  gap: 32px;
  margin: 0 0 24px;
}
.word-stats dt {
  font-size: 1rem;
  color: #52636a;
}
.word-stats dd {
  margin: 3px 0 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.word-form label {
  display: block;
  margin-bottom: 8px;
}
.word-entry {
  display: flex;
  gap: 10px;
}
.word-entry button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.word-entry input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #b9c5c4;
  border-radius: 3px;
  background: #fff;
}
.word-entry input:disabled {
  background: #eee;
}
.puzzle-feedback {
  min-height: 52px;
  margin: 16px 0;
}
.found-panel {
  padding-left: 32px;
  border-left: 1px solid #d7dcd8;
}
.found-words {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}
.found-words li {
  background: #e8ece7;
  border: 1px solid #d2ddd4;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 1rem;
}
.found-words:empty::after {
  content: 'Your discoveries will appear here.';
  color: #52636a;
}
#word-results {
  margin-top: 28px;
}
#word-results summary {
  cursor: pointer;
}
#missed-words {
  font-size: 1rem;
  line-height: 2;
}
.crossword-board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(48px, 1fr));
  background: #193f4c;
  border: 2px solid #193f4c;
  gap: 1px;
  max-width: 640px;
  width: 100%;
}
.crossword-cell {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  min-width: 0;
}
.crossword-cell.void {
  background: #193f4c;
}
.crossword-cell input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 19px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
  text-transform: uppercase;
  font:
    500 clamp(13px, 2vw, 23px) / 1 Arial,
    sans-serif;
  caret-color: transparent;
}
.crossword-cell input:focus {
  outline: 3px solid #b58a4d;
  outline-offset: -3px;
  z-index: 1;
  background: #f9e8be;
}
.crossword-cell.in-word {
  background: #e3eeed;
}
.crossword-cell input[aria-invalid='true'] {
  color: #a02121;
  box-shadow: inset 0 -3px #b32b2b;
}
.cell-number {
  position: absolute;
  top: 0;
  left: 3px;
  font:
    1rem/1.4 Arial,
    sans-serif;
  pointer-events: none;
  z-index: 2;
}
.active-clue {
  max-width: none;
  min-height: 62px;
  padding: 12px 14px;
  background: #e8ece7;
  margin: 0 0 14px;
  font-size: 1rem;
}
.crossword-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.clue-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.clue-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.play-main .clue-button {
  padding: 9px 8px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 1rem;
  width: 100%;
  display: flex;
  gap: 9px;
  line-height: 1.5;
}
.clue-button[aria-pressed='true'] {
  background: #e3eeed;
}
.clue-button strong {
  font-variant-numeric: tabular-nums;
}
.play-note {
  font-size: 1rem;
  color: #52636a;
}
.play-main iframe {
  display: block;
  max-width: 100%;
  border: 0;
  margin: 32px auto;
}
@media (max-width: 900px) {
  .puzzle-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .found-panel {
    border: 0;
    padding: 0;
  }
  .crossword-board {
    max-width: 600px;
  }
}
@media (max-width: 600px) {
  .play-main {
    width: calc(100% - 36px);
    padding-top: 24px;
  }
  .puzzle-toolbar label {
    flex-wrap: wrap;
  }
  .letter-tiles {
    gap: 5px;
  }
  .letter-tiles span {
    width: 34px;
    height: 44px;
    font-size: 25px;
  }
  .clue-columns {
    gap: 14px;
  }
  .cell-number {
    font-size: 1rem;
    left: 2px;
  }
}

.crossword-scroll {
  overflow-x: auto;
  padding: 3px;
  margin: -3px;
}
.crossword-board {
  min-width: calc(var(--columns) * 49px + 3px);
}
.puzzle-layout > section {
  min-width: 0;
}
