@charset "UTF-8";
@font-face {
  font-family: "Mitr";
  src: url("assets/fonts/mitr-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Mitr";
  src: url("assets/fonts/mitr-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Mitr";
  src: url("assets/fonts/mitr-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #ddf6ed;
  --ink: #103d3c;
  --muted: #4b6b63;
  --line: #93baae;
  --accent: #3156e9;
  --on-accent: #fff;
  --success: #1e7165;
  --tile: #f3fffa;
  --error: #a32823;
  font-family: "Mitr", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--success);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100% - 32px, 510px);
  margin: 0 auto;
  padding: 22px 0 12px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 3px solid var(--ink);
}
.brand h1 {
  font-size: 39px;
  letter-spacing: -2.4px;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}
.brand-lead {
  display: block;
}
.brand-tail {
  display: block;
  font-size: 24px;
  letter-spacing: -0.4px;
  line-height: 1.3;
}
.brand-note {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 7px;
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  width: 44px;
  height: 44px;
  background: var(--tile);
  font-size: 23px;
  font-weight: 700;
}
.icon-button:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.icon-button:hover svg {
  stroke: var(--on-accent);
}
.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: square;
}
.daily {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 15px 0 0;
  font-size: 10px;
  line-height: 1.4;
}
.daily > span {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--tile);
  padding: 7px 8px;
  font-weight: 700;
}
.daily i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.daily time {
  color: var(--muted);
  font-size: 10px;
}
.intro {
  margin: 20px 0;
}
.intro h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 7px;
}
.intro p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
  color: var(--muted);
}
.intro strong {
  color: var(--ink);
}
.game-meta {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-size: 10px;
  margin-bottom: 15px;
}
.game-meta > span:first-child {
  padding: 10px 0;
}
.game-meta > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1.5px solid var(--ink);
  padding: 8px 0 8px 12px;
  font-size: 9px;
}
.game-meta strong {
  background: var(--accent);
  color: var(--on-accent);
  padding: 4px 6px;
  font-size: 11px;
}
.board {
  max-height: 235px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
  padding: 3px 0;
}
#path {
  display: grid;
  gap: 9px;
}
.word-row,
.draft {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.step-index {
  position: absolute;
  right: calc(50% + 126px);
  width: 22px;
  font-size: 10px;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tile {
  display: grid;
  place-items: center;
  width: 50px;
  height: 53px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--tile);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}
.word-row .tile {
  background: var(--tile);
}
.word-row .tile.changed {
  background: var(--accent);
  color: var(--on-accent);
}
.word-row.won .tile {
  background: var(--success);
  border-color: var(--success);
  color: var(--tile);
}
.draft {
  margin-top: 11px;
  padding: 3px 0;
  cursor: text;
}
#draft-tiles {
  display: flex;
  gap: 8px;
}
.draft .tile {
  border-color: var(--line);
  border-style: dashed;
  background: transparent;
}
.draft .tile.filled {
  border-color: var(--ink);
  border-style: solid;
  background: var(--tile);
}
.draft .tile.active {
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--on-accent);
}
#guess {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 224px;
  height: 59px;
  top: 0;
  opacity: 0;
  font-size: 20px;
  cursor: text;
}
#draft:focus-within .tile.active {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}
.message {
  min-height: 18px;
  margin: 11px 0 8px;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}
.message.error {
  color: var(--error);
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 24px;
}
.actions > span {
  font-size: 9px;
  line-height: 1.9;
}
.muted {
  color: var(--muted);
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  min-height: 46px;
  padding: 11px 16px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.primary:hover {
  background: var(--ink);
  color: var(--tile);
}
.primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.primary > span {
  font-size: 17px;
  font-weight: 400;
}
.keyboard {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  user-select: none;
}
.key-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.key {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 0;
  max-width: 47px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--tile);
  font-size: 12px;
  font-weight: 700;
}
.key:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.key:active {
  transform: translateY(1px);
  background: var(--accent);
  color: var(--on-accent);
}
.key.wide {
  flex: 1.5;
  max-width: 67px;
  background: var(--ink);
  color: var(--tile);
}
.key[data-key="Backspace"] {
  font-size: 21px;
}
.key[data-key="Enter"] {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
}
.result {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--tile);
  padding: 20px 17px 8px;
  margin: 17px 0 0;
}
.result-stamp {
  position: absolute;
  top: 18px;
  right: 15px;
  font-size: 28px;
  filter: grayscale(1);
}
.result h2 {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 700;
  margin: 0 30px 13px 0;
  letter-spacing: -0.8px;
}
.result > p {
  font-size: 11px;
  line-height: 1.9;
  margin: 7px 0;
}
#result-detail {
  color: var(--muted);
}
.result > .primary {
  width: calc(100% - 3px);
  margin-top: 13px;
  font-size: 11px;
  gap: 8px;
}
.result .next-game {
  font-size: 9px;
  text-align: left;
  color: var(--muted);
  margin-top: 17px;
}
.shell:has(#result:not([hidden])) .board {
  max-height: 340px;
}
#share-fallback {
  margin-top: 15px;
}
#share-fallback label {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 7px;
}
textarea {
  resize: vertical;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 2px solid var(--ink);
  margin-top: 25px;
  padding-top: 8px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}
footer > span {
  max-width: 260px;
}
footer button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 10px;
  padding: 5px 0 5px 8px;
  min-height: 44px;
}
.storage-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--error);
}
dialog {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(calc(100% - 32px), 470px);
  padding: 36px 24px 25px;
  max-height: calc(100svh - 36px);
  overflow: auto;
  box-shadow: 8px 8px 0 var(--ink);
}
dialog::backdrop {
  background: #161813b8;
}
.close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
dialog h2 {
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 15px 0 20px;
}
dialog p,
dialog li {
  font-size: 11px;
  line-height: 1.9;
}
dialog ul {
  padding-left: 19px;
}
dialog li {
  padding-left: 3px;
  margin-bottom: 9px;
}
dialog a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.example {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 700;
  margin: 25px 0;
}
.example b {
  background: var(--accent);
  color: var(--on-accent);
}
.dialog-action {
  width: calc(100% - 3px);
  margin-top: 15px;
  font-size: 11px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
  margin: 26px 0;
}
.stats-grid strong {
  display: block;
  font-weight: 700;
  font-size: 29px;
  letter-spacing: -1px;
}
.stats-grid span {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}
#distribution {
  margin: 20px 0 25px;
  display: grid;
  gap: 8px;
}
.bar-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  font-size: 10px;
}
.bar {
  min-width: 26px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-align: right;
  font-weight: 700;
}
.fine-print {
  font-size: 9px !important;
}
@media (min-width: 700px) {
  .shell {
    padding-top: 36px;
  }
  .brand h1 {
    font-size: 50px;
    letter-spacing: -3px;
  }
  .brand-note {
    font-size: 10px;
  }
  .masthead {
    padding-bottom: 21px;
  }
  .daily {
    margin-top: 19px;
    font-size: 11px;
  }
  .daily time {
    font-size: 11px;
  }
  .intro {
    margin: 27px 0 25px;
  }
  .intro h2 {
    font-size: 19px;
  }
  .intro p {
    font-size: 12px;
  }
  .board {
    max-height: 300px;
  }
  .tile {
    width: 58px;
    height: 60px;
    font-size: 30px;
  }
  .step-index {
    right: calc(50% + 145px);
  }
  #guess {
    width: 256px;
    height: 66px;
  }
  .game-meta {
    font-size: 11px;
  }
  .game-meta > span:last-child {
    font-size: 10px;
  }
  .message {
    font-size: 11px;
    margin-top: 14px;
  }
  .actions {
    margin-top: 17px;
    margin-bottom: 29px;
  }
  .actions > span {
    font-size: 10px;
  }
  .key {
    min-height: 50px;
    font-size: 14px;
  }
  footer {
    font-size: 10px;
    margin-top: 30px;
  }
  footer > span {
    max-width: 380px;
  }
  .result {
    padding: 25px 22px 12px;
  }
  .result h2 {
    font-size: 23px;
  }
  .result > p {
    font-size: 12px;
  }
}
@media (max-width: 359px) {
  .shell {
    width: calc(100% - 24px);
    padding-top: 16px;
  }
  .brand h1 {
    font-size: 32px;
    letter-spacing: -2px;
  }
  .brand-note {
    font-size: 8px;
    letter-spacing: 0;
  }
  nav {
    gap: 5px;
  }
  .masthead {
    gap: 8px;
  }
  .daily {
    font-size: 9px;
  }
  .daily time {
    font-size: 9px;
  }
  .intro h2 {
    font-size: 14px;
  }
  .intro p {
    font-size: 10px;
  }
  .step-index {
    right: calc(50% + 116px);
  }
  .tile {
    width: 46px;
    height: 49px;
    font-size: 24px;
  }
  #guess {
    width: 208px;
    height: 55px;
  }
  .key-row {
    gap: 3px;
  }
  .key {
    min-height: 44px;
    font-size: 10px;
  }
  .actions > span {
    font-size: 8px;
  }
  .primary {
    font-size: 11px;
    gap: 10px;
    padding: 10px 12px;
  }
  footer {
    font-size: 8px;
  }
  footer > span {
    max-width: 220px;
  }
  dialog {
    padding: 35px 18px 24px;
  }
  dialog h2 {
    font-size: 21px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stats-grid strong {
    font-size: 24px;
  }
  .stats-grid span {
    font-size: 8px;
  }
  .result h2 {
    font-size: 17px;
  }
  .result > .primary {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
