:root {
  color-scheme: light dark;
  font: 100%/1.5 system-ui, sans-serif;
}

body {
  margin: 0;
}

main {
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.logo {
  height: 4rem;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heading h1 {
  margin: 0;
}

#timer {
  font-variant-numeric: tabular-nums;
}

.board-area {
  overflow-x: auto;
  padding: .3rem;
}

.board {
  --cell: clamp(1.45rem, 6vw, 2.1rem);
  --gap: .2rem;
  display: grid;
  grid-template-columns: repeat(var(--columns), var(--cell)) max-content;
  column-gap: var(--gap);
  align-items: center;
  width: max-content;
}

.cell {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 2.5rem;
  border: 1px solid GrayText;
  border-radius: .25rem;
  font: 600 1.125rem ui-monospace, monospace;
  text-align: center;
  text-transform: uppercase;
}

.cell.shared-top,
.cell.shared-bottom {
  background: light-dark(#edf1fa, #30384a);
}

.cell.shared-top {
  border-radius: .25rem .25rem 0 0;
  border-bottom: 0;
}

.cell.shared-bottom {
  border-radius: 0 0 .25rem .25rem;
}

.cell.revealed {
  background: light-dark(#bce7c6, #285a37);
}

.cell:focus {
  z-index: 1;
}

.clue {
  margin-left: .55rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

button {
  font: inherit;
  padding: .35rem .75rem;
}

.counts {
  font-size: .875rem;
}
