/* Daily Word only: the board of tiles and the keyboard. Shared rules are in ../shared/base.css. */
main { max-width: 520px; }
/* the board takes what the screen has left after the header, the message and the keyboard, so all of it fits at once */
.board { display: grid; grid-template-rows: repeat(6, 1fr); gap: 5px; margin: 0 auto;
  width: min(330px, 100%, calc((100vh - 330px) * 0.82)); width: min(330px, 100%, calc((100dvh - 330px) * 0.82)); min-width: 200px; }
ol.board { list-style: none; padding: 0; }  /* the board is a list of guesses (for screen readers) */
.row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tile {
  display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--edge); border-radius: 8px;
  font-size: clamp(18px, 7vw, 32px); font-weight: 800; text-transform: uppercase;
}
.tile.full { border-color: var(--muted); }
.tile.right { background: var(--right); border-color: var(--right); color: var(--ink); }
/* "in the word" also has a dashed inner line, so it reads differently from green without colour */
.tile.near { background: var(--accent); border-color: var(--accent); color: var(--ink); outline: 3px dashed var(--ink); outline-offset: -8px; }
.tile.miss { background: var(--edge); border-color: var(--edge); color: var(--text); }
.msg { min-height: 2.6em; font-size: 15px; line-height: 1.3; margin: 6px 0; }
.keys { display: grid; gap: 6px; margin: 0 auto 20px; max-width: 500px; }
.keys .krow { display: flex; gap: 5px; justify-content: center; }
.keys button {
  flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 8px; background: var(--raised); color: var(--text);
  font: inherit; font-weight: 700; font-size: 17px; text-transform: uppercase; cursor: pointer; padding: 0;
}
.keys button.wide { flex: 1.6; font-size: 13px; }
.keys button.right { background: var(--right); color: var(--ink); }
.keys button.near { background: var(--accent); color: var(--ink); outline: 2px dashed var(--ink); outline-offset: -5px; }
/* "not in the word": struck through as well as darker, since the grounds alone are 1.25:1 apart (WCAG 1.4.11) */
.keys button.miss { background: var(--ground); color: var(--muted); border: 1px solid var(--edge); text-decoration-line: line-through; text-decoration-thickness: 2px; }
.keys button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.k-right { color: var(--right); } .k-near { color: var(--accent); }
