@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wordgarden Serif SC";
  src: url("assets/fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wordgarden Sans SC";
  src: url("assets/fonts/noto-sans-sc-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-display: "Fraunces", "Wordgarden Serif SC", "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --font-body: "Manrope", "Wordgarden Sans SC", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --bg: #f3efe3;
  --bg-deep: #ebe4d3;
  --surface: rgba(252, 248, 238, 0.84);
  --surface-solid: #fbf7ed;
  --ink: #1d2a20;
  --ink-soft: #344437;
  --muted: #737c6d;
  --muted-strong: #5b6659;
  --line: rgba(29, 42, 32, 0.12);
  --line-strong: rgba(29, 42, 32, 0.22);
  --accent: #4c7a5a;
  --accent-ink: #2e5a3f;
  --accent-soft: #dcebdd;
  --tile-unset: rgba(255, 255, 255, 0.46);
  --tile-absent: #7d847d;
  --tile-present: #c99a3f;
  --tile-correct: #4f825f;
  --shadow: 0 20px 50px rgba(50, 60, 45, 0.08);
  --shadow-soft: 0 8px 24px rgba(50, 60, 45, 0.06);
  --radius: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101510;
  --bg-deep: #0b100b;
  --surface: rgba(24, 31, 24, 0.86);
  --surface-solid: #1a221a;
  --ink: #e8eee4;
  --ink-soft: #c4cec0;
  --muted: #8c998a;
  --muted-strong: #a8b3a3;
  --line: rgba(232, 238, 228, 0.12);
  --line-strong: rgba(232, 238, 228, 0.22);
  --accent: #8fbd96;
  --accent-ink: #b8d7bb;
  --accent-soft: #233326;
  --tile-unset: rgba(255, 255, 255, 0.04);
  --tile-absent: #555e55;
  --tile-present: #b48a34;
  --tile-correct: #4e875f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1000px 560px at 50% -12%, rgba(151, 186, 154, 0.28), transparent 64%),
    radial-gradient(720px 420px at 92% 4%, rgba(218, 179, 108, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button { color: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

[hidden] { display: none !important; }

::selection {
  color: var(--ink);
  background: var(--accent-soft);
}

::-moz-selection {
  color: var(--ink);
  background: var(--accent-soft);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-ink);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: none; }

.noscript-banner {
  margin: 0;
  padding: 10px 20px;
  color: #672f23;
  background: #ffd9c9;
  text-align: center;
  font-size: 13px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.ambient-glow--sage {
  top: -160px;
  left: 8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(141, 182, 149, 0.26), transparent 68%);
}

.ambient-glow--ochre {
  right: -120px;
  top: 18%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(211, 170, 91, 0.16), transparent 68%);
}

.ambient-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme="dark"] .ambient-grain { mix-blend-mode: screen; opacity: 0.07; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-en {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.home-link svg { width: 14px; height: 14px; flex: none; }
.home-link:hover { border-color: var(--line-strong); background: var(--surface-solid); }

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-solid) 35%, transparent);
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.play-link svg { width: 14px; height: 14px; }
.play-link:hover { border-color: var(--line-strong); background: var(--surface-solid); }

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--muted-strong);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

.theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: block; }

.hero {
  padding: 54px 0 32px;
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow-dot { color: var(--accent); }

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 66px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--accent-ink);
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.75;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11.5px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.legend-tile {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.legend-tile--absent { background: var(--tile-absent); }
.legend-tile--present { background: var(--tile-present); }
.legend-tile--correct { background: var(--tile-correct); }

.legend-note {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 11px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 34px;
}

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.result-panel {
  position: sticky;
  top: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.ghost-button {
  flex: none;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.ghost-button:hover { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.ghost-button.is-armed { color: #9a3d2c; border-color: rgba(154, 61, 44, 0.4); background: rgba(154, 61, 44, 0.08); }

.board { display: flex; flex-direction: column; gap: 8px; }

.guess-row {
  display: grid;
  grid-template-columns: 24px minmax(72px, 1fr) 24px auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.guess-row:hover { border-color: var(--line); background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.guess-row.is-complete { border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: color-mix(in srgb, var(--accent-soft) 22%, transparent); }

.row-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.guess-field { min-width: 0; }

.guess-input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 62%, transparent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.guess-input::placeholder {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.guess-input:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}

.row-clear {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: color 140ms ease, background-color 140ms ease;
}

.row-clear:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.row-clear:disabled { opacity: 0.25; cursor: default; }

.tiles { display: flex; gap: 5px; }

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted-strong);
  background: var(--tile-unset);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.tile:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--muted); }
.tile:active:not(:disabled) { transform: scale(0.96); }
.tile:disabled { cursor: default; opacity: 0.55; }

.tile[data-state="1"] {
  border-style: solid;
  border-color: var(--tile-absent);
  color: #fff;
  background: var(--tile-absent);
}

.tile[data-state="2"] {
  border-style: solid;
  border-color: var(--tile-present);
  color: #fff;
  background: var(--tile-present);
}

.tile[data-state="3"] {
  border-style: solid;
  border-color: var(--tile-correct);
  color: #fff;
  background: var(--tile-correct);
}

.tile:focus-visible,
.guess-input:focus-visible,
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 2px;
}

.board-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.board-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.result-count {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-count::after {
  content: "个";
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.result-count.is-empty::after { content: ""; }

.result-count.is-pulse { animation: count-pulse 320ms ease; }

@keyframes count-pulse {
  0% { transform: scale(0.92); opacity: 0.5; }
  100% { transform: none; opacity: 1; }
}

.result-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.select-field select {
  min-height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  color: var(--ink-soft);
  background: var(--surface-solid);
  font-size: 11px;
  cursor: pointer;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.copy-button svg { width: 13px; height: 13px; }
.copy-button:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.copy-button:disabled { opacity: 0.4; cursor: default; }

.status {
  min-height: 34px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.5;
}

.status.is-good {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent-soft) 28%, transparent);
}

.status.is-bad {
  border-style: solid;
  border-color: rgba(154, 61, 44, 0.26);
  color: #8d3a2a;
  background: rgba(154, 61, 44, 0.06);
}

[data-theme="dark"] .status.is-bad { color: #e6a092; }

.candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 5px;
  max-height: 372px;
  overflow-y: auto;
  padding: 1px 2px 1px 1px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.candidate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-solid) 52%, transparent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}

.candidate:hover {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 44%, transparent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.candidate.is-common::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.candidates-empty {
  grid-column: 1 / -1;
  margin: 4px 0;
  padding: 26px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
}

.more-button {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 10.5px;
  cursor: pointer;
}

.more-button:hover { color: var(--ink); border-color: var(--line-strong); }

.result-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9.5px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--muted-strong); border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--accent-ink); border-bottom-color: currentColor; }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  background: var(--accent-ink);
  box-shadow: var(--shadow-soft);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.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;
}

/* 嵌在词亩的作弊器弹窗里：去掉落地页的头图和外框，只留工具本体。 */
html.is-embed body {
  min-height: 0;
  background: var(--bg);
}

html.is-embed .ambient,
html.is-embed .site-header,
html.is-embed .hero,
html.is-embed .site-footer,
html.is-embed .skip-link {
  display: none;
}

html.is-embed .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px;
}

html.is-embed .layout {
  padding-bottom: 0;
  gap: 12px;
}

html.is-embed .panel {
  padding: 18px;
  border-radius: 14px;
  box-shadow: none;
}

html.is-embed .result-panel { top: 0; }

@media (max-width: 620px) {
  html.is-embed .shell { padding: 10px; }
  html.is-embed .panel { padding: 14px; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .result-panel { position: static; }
  .hero { padding-top: 38px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .site-header { padding-top: 18px; }
  .play-link { display: none; }
  .home-link {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }
  .home-link span { display: none; }
  .hero { padding: 34px 0 24px; }
  .hero h1 { font-size: clamp(34px, 11vw, 46px); }
  .lead { font-size: 13px; }
  .legend { gap: 7px 12px; }
  .legend-note { flex-basis: 100%; }
  .panel { padding: 16px; border-radius: 15px; }
  .guess-row { grid-template-columns: 22px minmax(0, 1fr) 24px; row-gap: 6px; }
  .tiles { grid-column: 2 / 4; padding-top: 1px; }
  .tile { width: 42px; height: 42px; font-size: 16px; }
  .panel-head h2 { font-size: 19px; }
  .result-count { font-size: 26px; }
  .candidates { max-height: 320px; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 26px; }
}

@media (max-width: 380px) {
  .tile { width: 38px; height: 38px; }
  .guess-row { grid-template-columns: 20px minmax(0, 1fr) 22px; gap: 5px; }
  .row-index { font-size: 8.5px; }
  .result-tools { align-items: stretch; flex-direction: column; }
  .copy-button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
