@import url('/fonts.css');

:root {
  --paper: #f7f8f2;
  --white: #fffefa;
  --ink: #1d3430;
  --muted: #7b847a;
  --line: #e0e5d9;
  --green: #1d5b48;
  --lime: #d6e9ae;
  --red: #a25245;
  --pending: #f5e8af;
  --pending-border: #d4b856;
  --blocked: #f6ded9;
  --blocked-border: #b85d4e;
  --blocked-ink: #8d3c31;
  --board-background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { 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; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #7b9b5a;
  outline-offset: 4px;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  max-width: 1160px;
  margin: auto;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.1px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.brand-period { color: #7fa15c; }
.brand-mark {
  width: 27px;
  height: 29px;
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 3px;
  transform: rotate(-5deg);
}
.brand-mark i { border: 1.8px solid var(--ink); border-radius: 2px; }
.brand-mark i:nth-child(3) { background: var(--green); border-color: var(--green); }
.brand-mark i:nth-child(4) { transform: translateY(4px); background: var(--lime); border-color: #95af78; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: #52664b;
}
.icon-button:hover { background: #e8eddf; }
main { max-width: 1100px; margin: auto; padding: 0 30px 35px; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 28px;
  color: #626f60;
  font-size: 12px;
  line-height: 1.6;
}
.site-footer small { font-size: inherit; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.site-footer a { text-decoration-color: transparent; text-underline-offset: 3px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--green); text-decoration-color: currentColor; }
.puzzle-topbar {
  display: block;
  margin: 30px 0 28px;
}
.puzzle-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.score-summary { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12px; white-space: nowrap; }
.score-summary strong { color: var(--green); font-size: 18px; font-weight: 600; }
.mode-switch {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: #e9eddf;
  border-radius: 8px;
}
.mode-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 9px 13px;
  color: #7b8373;
  font-size: 12px;
  font-weight: 600;
}
.mode-button > span { font-size: 16px; line-height: 14px; }
.mode-button small { font-size: 9px; font-weight: 500; color: #879378; }
.mode-button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px #223f2710; }
#puzzle-date { justify-self: center; color: #8a9480; font-size: 11px; white-space: nowrap; }
.progress-summary { justify-self: end; display: flex; gap: 4px; align-items: baseline; font-size: 12px; color: #8a9480; white-space: nowrap; }
#layer-count { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 650; color: #567348; }
#layer-target { font-size: 12px; font-weight: 400; }
.strike-summary { color: var(--muted); font-size: 11px; white-space: nowrap; }
.strike-summary.has-strikes { color: var(--red); }

.game-shell { position: relative; }
.play-area { min-width: 0; padding: 8px 0 0; }
.board-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5d2b4 transparent;
  padding: 6px 0 14px;
  scroll-behavior: auto;
}
.board {
  --cell: 30px;
  --row-gap: 12px;
  --cols: 12;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-template-rows: repeat(6, var(--cell));
  column-gap: 0;
  row-gap: var(--row-gap);
  position: relative;
  isolation: isolate;
  width: max-content;
  min-width: max-content;
  margin: 0 auto;
}
.cell {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--cell);
  height: var(--cell);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a896c;
  font-family: Manrope, sans-serif;
  font-size: calc(var(--cell) * .44);
  font-weight: 700;
}
.cell.empty::after { content: ''; width: 2px; height: 2px; border-radius: 50%; background: #d4ddc9; }
.cell.empty:hover { background: #eaf0df; border-radius: 4px; }
.cell.empty.draft-gap { border: 1px dashed #9ab180; border-radius: 4px; }
.cell.empty.draft-gap::after { width: 8px; height: 1px; border-radius: 0; background: #8aa268; }
.cell.empty:disabled { opacity: .35; }
.cell.empty:disabled:hover { background: transparent; }
.cell.foundation { color: #405b34; }
.cell.placed { color: #fffef4; }
.cell.ghost { color: #66824b; }
.cell.ghost.invalid-preview { color: #a66d58; }
.cell.selected { border: 1px solid #9ab180; border-radius: 4px; background: #edf2e2; }
.cell.editing-letter { outline: 2px solid var(--green); outline-offset: -2px; border-radius: 3px; }
.cell.selected::after { width: 8px; height: 1px; border-radius: 0; align-self: end; margin-bottom: 7px; background: #8aa268; }
.cell.empty.needs-letter { background: var(--pending); border-radius: 3px; box-shadow: inset 0 0 0 1px #d4b85655; }
.cell.empty.needs-letter:hover { box-shadow: inset 0 0 0 1px var(--pending-border); }
.cell.empty.needs-letter::after { background: #ae8e2b; }
.cell.empty.needs-letter.selected { border-color: var(--pending-border); }
.cell.empty.blocked-column { background: var(--blocked); border-radius: 3px; box-shadow: inset 0 0 0 1px #b85d4e55; }
.cell.empty.blocked-column:disabled { opacity: 1; }
.cell.empty.blocked-column:hover { background: var(--blocked); box-shadow: inset 0 0 0 1px var(--blocked-border); }
.cell.empty.blocked-column::after { content: '×'; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--blocked-border); font-size: 12px; }
.cell.empty.blocked-column.selected { border-color: var(--blocked-border); }
.cell.empty.blocked-preview, .cell.empty.blocked-preview:hover { background: color-mix(in srgb, var(--blocked) 42%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blocked-border) 20%, transparent); }
.cell.empty.blocked-preview::after { color: color-mix(in srgb, var(--blocked-border) 48%, transparent); }
.cell.empty.blocked-preview.selected { border-color: color-mix(in srgb, var(--blocked-border) 48%, transparent); }
.cell.blocked-word { border-radius: 3px; box-shadow: inset 0 -3px var(--blocked-border); }
.cell.blocked-word.blocked-preview { box-shadow: inset 0 -3px color-mix(in srgb, var(--blocked-border) 48%, transparent); }
.cell.empty.blackened, .cell.empty.blackened:disabled, .cell.empty.blackened:hover { opacity: 1; background: #28332e; border: 1px solid #17231d; border-radius: 3px; box-shadow: inset 0 0 0 1px #ffffff0a; }
.cell.empty.blackened::after { content: '×'; width: auto; height: auto; border-radius: 0; background: transparent; color: #91a097; font-size: 12px; }
.cell.empty.tile-flip { transform-origin: center; animation: tile-flip var(--tile-flip-duration, 260ms) cubic-bezier(.2,.65,.3,1) both; }
@keyframes tile-flip {
  from { transform: perspective(160px) rotateX(74deg); opacity: .55; }
  to { transform: perspective(160px) rotateX(0deg); opacity: 1; }
}
.cell.tile-wiggle, .cell.empty.tile-wiggle { animation: letter-wiggle var(--letter-wiggle-duration, 180ms) ease-out both; }
@keyframes letter-wiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.cell.column-active { box-shadow: inset 0 0 0 1px #99b07d; border-radius: 3px; }
.cell:focus-visible { z-index: 4; outline-offset: -2px; border-radius: 4px; }
.word-piece {
  --piece-border: #afc494;
  --piece-grout: #819f602f;
  position: absolute;
  z-index: 1;
  inset: 0 1px;
  min-width: 0;
  border: 1px solid var(--piece-border);
  border-radius: 5px;
  background: #dce9c9;
  pointer-events: none;
  overflow: hidden;
}
.word-piece.placed { --piece-border: #23533f; --piece-grout: #e1edce30; background: #2a604c; }
.word-piece.hanging { --piece-border: #476d4e; --piece-grout: #e1edce38; background: #557a59; }
.word-piece.ghost { --piece-border: #98af7c; --piece-grout: #819f6040; border-style: dashed; background: #e9efda; }
.word-piece.invalid-preview { --piece-border: #c5a48f; --piece-grout: #b48b7530; background: #f3eee3; }
.word-grout {
  position: absolute;
  left: calc(var(--letter) * var(--cell) - 1px);
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: var(--piece-grout);
}
.word-grout::before, .word-grout::after {
  content: '';
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--piece-border);
  border-radius: 50%;
  background: var(--board-background);
}
.word-grout::before { top: -4px; }
.word-grout::after { bottom: -4px; }
.placement-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #7e8c72;
}
.placement-status:empty { visibility: hidden; }
.placement-status.error { color: var(--red); }
.placement-status.ready { color: #668451; }
.status-icon { font-size: 14px; color: inherit; }
.connections-strip { margin-top: 9px; }
.connections { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; max-height: 72px; overflow: auto; }
.connection-chip {
  border: 1px solid #d6e2c8;
  border-radius: 4px;
  background: #eaf0df;
  padding: 5px 7px;
  color: #617d4d;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .6px;
}
.connection-chip.fragment { border-style: dashed; background: transparent; color: #8d9d7e; }
.connection-chip.invalid { border-color: #dfc9ba; background: #f5ece5; color: #a36950; }
.connection-chip.closed { border-color: var(--green); background: var(--green); color: var(--white); }
.connection-chip.abandoned { border-color: #17231d; background: #28332e; color: var(--white); }

.word-desk { max-width: 640px; margin: 25px auto 0; }
.desk-topline { display: flex; align-items: center; justify-content: flex-end; margin: 0 0 9px; min-height: 14px; }
#placement-label { font-size: 11px; color: #94a086; }
#word-form { display: flex; gap: 9px; }
.word-input-wrap { display: flex; align-items: center; min-width: 0; flex: 1; border: 1px solid #d4dec8; border-radius: 7px; background: var(--white); padding: 0 15px; }
.word-input-wrap:focus-within { border-color: #8ca872; }
#word-input { width: 100%; min-width: 0; height: 49px; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
#word-input::placeholder { color: #a1ad95; font-size: 13px; letter-spacing: 0; text-transform: none; }
.place-button { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 132px; padding: 0 17px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: #f7f9ef; font-size: 12px; font-weight: 500; }
.place-button > span { font-size: 18px; color: #abc59f; }
.place-button:hover:not(:disabled) { background: #184c3c; }
.place-button:disabled { background: #e5ebd9; border-color: #d9e1cc; color: #9dab8d; }
.place-button:disabled > span { color: #b1bda2; }
.desk-bottomline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; margin-top: 10px; min-height: 18px; color: #95a187; font-size: 10px; }
.placement-controls { display: flex; align-items: center; gap: 8px; }
.placement-controls button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #eaf0df; color: var(--green); font-size: 19px; }
.placement-controls button:hover:not(:disabled) { background: #dce6cd; }
.placement-controls button:disabled { opacity: .4; }
.clear-word-button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #eaf0df; color: var(--green); font-size: 11px; white-space: nowrap; }
.clear-word-button:hover:not(:disabled) { background: #dce6cd; }
.clear-word-button:disabled { opacity: .4; }
#input-help { display: flex; align-items: center; gap: 4px; }
kbd { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid #dce4d2; border-radius: 3px; color: #889b76; font: inherit; font-size: 10px; }
.help-dot { margin: 0 4px; }
.keyboard { display: flex; flex-direction: column; gap: 6px; max-width: 500px; margin: 23px auto 0; user-select: none; }
.keyboard, .keyboard button, .placement-controls button, .place-button, .clear-word-button { touch-action: manipulation; }
.keyboard-row { display: flex; justify-content: center; gap: 5px; }
.key { flex: 1; min-width: 0; max-width: 44px; height: 41px; padding: 0; border: 1px solid #dae2ce; border-bottom: 2px solid #d1dcc2; border-radius: 5px; background: #e9eddf; color: #627757; font-size: 12px; font-weight: 600; }
.key:hover { background: #dce6cd; }
.key:active { transform: translateY(1px); border-bottom-width: 1px; }
.key.wide { flex: 1.5; max-width: 65px; font-size: 9px; }
.key.place-key { border-color: #c3d3a8; background: #d4e2bd; color: #5c7648; }
.key svg { width: 16px; height: 16px; vertical-align: middle; }

.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; max-width: 90vw; padding: 12px 18px; border-radius: 7px; background: var(--ink); color: var(--white); font-size: 12px; text-align: center; opacity: 0; transform: translate(-50%, 15px); pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { width: 440px; max-width: calc(100vw - 28px); max-height: 90dvh; padding: 25px 28px; border: 1px solid #d8e1cd; border-radius: 12px; background: var(--white); color: var(--ink); box-shadow: 0 15px 70px #233f2726; }
dialog::backdrop { background: #263b3045; backdrop-filter: blur(3px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.dialog-kicker { font-size: 11px; color: #7e926a; }
.dialog-top .icon-button { width: 26px; height: 26px; font-size: 17px; }
h2 { margin: 0 0 16px; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 650; letter-spacing: -.8px; line-height: 1.25; }
h2 em { font-style: normal; color: #7a9366; }
dialog p { margin: 12px 0; font-size: 12px; line-height: 1.7; color: #7d8d70; }
dialog p strong { font-weight: 600; color: #526c42; }
.howto-list { margin: 20px 0; padding: 0; list-style: none; counter-reset: steps; }
.howto-list li { position: relative; margin: 17px 0; padding-left: 30px; counter-increment: steps; }
.howto-list li::before { content: counter(steps); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e6edda; color: #718a58; font-size: 10px; }
.howto-list strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.howto-list span { display: block; font-size: 12px; line-height: 1.7; color: #849474; }
.help-note { margin: 17px 0; padding: 12px; border-radius: 6px; background: #f0f4e8; color: #7d916b; font-size: 11px; line-height: 1.7; }
.dialog-primary { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; padding: 13px 15px; border: 0; border-radius: 6px; background: var(--green); color: var(--white); font-size: 12px; text-align: left; }
.dialog-primary:hover { background: #194b3d; }
.dictionary-credit { margin-bottom: 0 !important; font-size: 10px !important; }
.dictionary-credit a { text-underline-offset: 3px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-row strong { display: block; font-size: 12px; font-weight: 600; }
.setting-row small { display: block; margin-top: 4px; color: #8d9c7d; font-size: 11px; }
.setting-row input { width: 18px; height: 18px; accent-color: var(--green); }
.mode-setting { margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.mode-setting legend { margin-bottom: 12px; padding: 0; font-size: 12px; font-weight: 600; }
.mode-setting .mode-switch { display: flex; width: 100%; }
.mode-setting .mode-button { flex: 1; justify-content: center; padding: 10px 12px; font-size: 12px; }
.share-text { width: 100%; height: 220px; resize: none; padding: 15px; border: 1px solid #d6e2c7; border-radius: 6px; background: #f1f5e9; color: #536e44; font-size: 12px; line-height: 1.7; }
.share-option { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; font-size: 13px; cursor: pointer; }
.share-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.share-plaintext-option { margin-left: 28px; margin-top: -5px; font-size: 12px; }
.share-plaintext-option input:disabled + span { opacity: .55; }
.share-text.show-letters { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; letter-spacing: 0; }
.share-text.plain-letters { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.results-dialog .dialog-top { margin-bottom: 12px; }
.results-dialog .dialog-top h2 { margin-bottom: 0; }
.results-dialog .result-summary { display: inline-block; margin: 0 0 3px; padding: 7px 11px; border-radius: 6px; background: #eaf0df; color: #526c42; font-weight: 600; }
.results-dialog .result-summary:empty { display: none; }
.results-dialog .dialog-primary { margin-top: 14px; min-height: 44px; align-items: center; font-weight: 600; }
.share-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.share-links a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 6px; border: 1px solid #d6e2c7; border-radius: 6px; background: #f4f7ee; color: #526c42; font-size: 12px; font-weight: 550; text-decoration: none; }
.share-links a:hover { background: #e5edda; border-color: #afc494; }
.share-links a span { color: #7c9364; }
.results-dialog .share-feedback { min-height: 18px; margin: 9px 0 0; color: var(--green); text-align: center; font-size: 11px; }
.native-share { width: 100%; padding: 13px; border: 0; background: transparent; color: #7c9364; font-size: 12px; }
.stats-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.stat-box { padding: 16px 4px; border: 1px solid #dce5d0; border-radius: 7px; background: #f4f7ee; text-align: center; }
.stat-box strong { display: block; margin-bottom: 4px; font: 600 28px Manrope, sans-serif; }
.stat-box span { color: #889b78; font-size: 10px; }
.loading-error { color: var(--red); font-size: 12px; line-height: 1.7; }
.retry-button { margin-left: 8px; padding: 5px 10px; border: 0; border-radius: 4px; background: var(--green); color: var(--white); font-size: 12px; }
.high-contrast { --muted: #536447; --line: #b9c8a9; --pending: #eed36e; --pending-border: #a58115; --blocked: #f0c2b9; --blocked-border: #963d30; --blocked-ink: #70281e; }
.high-contrast .cell.empty::after { background: #a4b68f; }
.high-contrast #puzzle-date, .high-contrast #placement-label, .high-contrast #input-help, .high-contrast .progress-summary { color: #5d724e; }
.high-contrast .word-piece.foundation { --piece-border: #7a995e; }
.high-contrast .word-piece.ghost { --piece-border: #6b884f; }

@media (max-width: 720px) {
  .site-header { padding: 20px 18px; gap: 10px; }
  .brand { font-size: 22px; gap: 9px; }
  .header-actions { gap: 2px; }
  .header-actions .icon-button { width: 29px; height: 29px; }
  .header-actions svg { width: 19px; height: 19px; }
  main { padding: 0 16px 25px; }
  .puzzle-topbar { margin: 24px 0 21px; }
  .mode-switch { grid-column: 1; grid-row: 1; }
  .mode-button { padding: 8px 10px; gap: 5px; font-size: 11px; }
  .mode-button small { font-size: 8px; }
  #puzzle-date { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 2px; font-size: 11px; }
  .progress-summary { grid-column: 2; grid-row: 1 / span 2; font-size: 11px; gap: 3px; }
  #layer-count { font-size: 19px; }
  #layer-target { font-size: 11px; }
  .play-area { padding-top: 0; }
  .board { --cell: clamp(24px, calc((100vw - 32px) / var(--cols)), 32px); }
  .board-scroll { padding-bottom: 13px; }
  .placement-status { min-height: 32px; font-size: 11px; margin-top: 1px; }
  .connections-strip { margin-top: 4px; }
  .connections { gap: 5px; max-height: 65px; }
  .connection-chip { font-size: 9px; padding: 4px 6px; }
  .word-desk { margin-top: 20px; }
  .desk-topline { margin-bottom: 7px; }
  #placement-label { font-size: 10px; }
  #word-form { gap: 7px; }
  .word-input-wrap { padding: 0 12px; }
  #word-input { height: 47px; font-size: 14px; }
  #word-input::placeholder { font-size: 12px; }
  .place-button { min-width: 113px; gap: 10px; padding: 0 12px; font-size: 11px; }
  .desk-bottomline { gap: 8px; font-size: 9px; }
  #input-help kbd { min-width: 14px; height: 14px; padding: 0 2px; font-size: 9px; }
  .keyboard { margin-top: 21px; gap: 6px; }
  .keyboard-row { gap: 4px; }
  .key { height: 43px; font-size: 12px; border-radius: 4px; }
  dialog { padding: 22px; }
  h2 { font-size: 24px; }
}

@media (min-width: 721px) and (max-height: 760px) {
  .site-header { padding-top: 19px; padding-bottom: 19px; }
  .puzzle-topbar { margin-top: 20px; margin-bottom: 16px; }
  .board { --cell: 28px; --row-gap: 10px; }
  .word-desk { margin-top: 18px; }
  .keyboard { margin-top: 17px; }
  .key { height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
