.crossword-panel .wholegame {
  width: min(100%, 440px);
  margin: auto;
  overflow: visible;
}
.crossword-panel .title {
  width: auto;
  margin: 0 0 24px;
  text-align: left;
  font:
    26px/1.25 Georgia,
    serif;
}
.crossword-panel table {
  width: 100%;
  max-width: 440px;
  table-layout: fixed;
  border-collapse: collapse;
  padding: 0;
  border: 1px solid #a9b7ae;
}
.crossword-panel td {
  position: relative;
  padding: 0;
  width: 12.5%;
  height: auto;
}
.crossword-panel .inpt,
.crossword-panel .dark {
  display: block;
  width: 100%;
  height: auto;
  min-height: 28px;
  max-width: none;
  max-height: none;
  aspect-ratio: 1;
  margin: 0;
  padding: 6px 0 0;
  border: 1px solid #a9b7ae;
  border-radius: 0;
  box-sizing: border-box;
  text-align: center;
  font:
    20px/1 Arial,
    sans-serif;
  text-transform: uppercase;
}
.crossword-panel .inpt {
  background: #fffdf8;
}
.crossword-panel .dark {
  background: #34413c;
}
.crossword-panel td[data-number]::before {
  content: attr(data-number);
  position: absolute;
  top: 2px;
  left: 3px;
  font:
    1rem/1 Arial,
    sans-serif;
  color: #607274;
  pointer-events: none;
}
.crossword-panel .acrosstitle,
.crossword-panel .downtitle {
  width: auto;
  margin: 24px 0 10px;
  text-align: left;
  font:
    22px Georgia,
    serif;
}
.crossword-panel ol {
  padding-left: 24px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}
.crossword-panel .answers-section {
  margin-top: 24px !important;
}
@media (max-width: 540px) {
  .crossword-panel .inpt,
  .crossword-panel .dark {
    font-size: 1rem;
  }
  .crossword-panel .title {
    font-size: 24px;
  }
}

/* The shared grid renderer uses table blocks instead of readonly inputs. */
.crossword-panel .grid {
  margin: 0 auto;
}
.crossword-panel .grid td {
  border: 1px solid #a9b7ae;
}
.crossword-panel .grid .block {
  background: #34413c;
}
.crossword-panel .grid .inpt {
  border: 0;
}
.crossword-panel .inpt.correct {
  color: #315b38;
}
.crossword-panel .inpt.wrong {
  color: #b42e2e;
}
.crossword-panel .clues {
  max-width: 440px;
  margin: 24px auto 0;
}
.crossword-panel .button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.crossword-panel #feedback {
  margin: 16px 0;
  font-size: 1rem;
}
.crossword-panel #answers {
  margin-top: 24px;
  font-size: 1rem;
}

.crossword-panel .wholegame {
  overflow-x: auto;
}
.crossword-panel #grid-container {
  overflow-x: auto;
}
.crossword-panel table {
  min-width: 400px;
}
.crossword-panel .inpt,
.crossword-panel .dark {
  padding-top: 19px;
}
