:root {
  font-family: system-ui, -apple-system, sans-serif;
  color: #242a28;
  background: #f8f6f2;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}

.eyebrow {
  color: #527465;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); }
header > p:last-child { color: #5e6863; line-height: 1.5; }

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

#progress { font-weight: 700; }

button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #2e7457; outline-offset: 3px; }

.reset {
  padding: 10px 12px;
  border: 1px solid #b8c5bd;
  border-radius: 10px;
  background: transparent;
  color: #365447;
}

.message { color: #375d49; font-weight: 700; }
.message:empty { display: none; }
.grid-container { overflow-x: auto; padding: 3px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(110px, calc(var(--cell-width) - 8px))), 1fr));
  gap: 8px;
}

.cell {
  position: relative;
  min-height: 110px;
  padding: 24px 12px;
  border: 1px solid #dfe5df;
  border-radius: 14px;
  background: white;
  color: #263a30;
  font-size: clamp(.8rem, 2.5vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cell[aria-pressed="true"] {
  border-color: #527e65;
  background: #dceee0;
  color: #23543a;
}

.cell[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 9px;
}

.note { color: #69756e; font-size: .85rem; line-height: 1.5; }

@media (max-width: 480px) {
  .page { padding: 28px 14px; }
  .cell { min-height: 104px; padding: 22px 8px; }
}
