.game { display: grid; justify-items: center; gap: 12px; }
.hint { margin: 0; color: var(--muted); text-align: center; }
.wl { list-style: none; padding: 0; margin: 0; }
.wl li { padding: 6px 0; border-bottom: 1px solid #8884; }
#q { width: 100%; box-sizing: border-box; padding: 8px; font: inherit; }
.board { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tile { width: min(56px, 15vw); height: min(56px, 15vw); border: 2px solid var(--line); display: grid; place-items: center; font-size: 26px; font-weight: 800; text-transform: uppercase; }
.tile.filled { border-color: var(--muted); }
.tile.correct, .key.correct { background: #4c9a3c; border-color: #4c9a3c; color: #fff; }
.tile.present, .key.present { background: #b79a2a; border-color: #b79a2a; color: #fff; }
.tile.absent, .key.absent { background: #3a3b33; border-color: #3a3b33; color: #fff; }
.archlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.archlist span { color: var(--muted); }
.msg { min-height: 24px; margin: 0; color: var(--accent); text-align: center; }
.kb { display: grid; gap: 6px; width: 100%; max-width: 500px; }
.krow { display: flex; gap: 4px; justify-content: center; }
.key { flex: 1; min-width: 0; height: 52px; padding: 0; background: #2a2c20; color: var(--text); text-transform: uppercase; font-size: 14px; }
.key.wide { flex: 1.6; font-size: 12px; }
a { color: var(--accent); }
.statsbtn { margin-left: auto; padding: 8px 14px; }
.stats { width: min(92vw, 400px); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.stats::backdrop { background: #000a; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.shead h2 { margin: 0; }
.snums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; text-align: center; }
.snums b { display: block; font-size: 28px; line-height: 1.1; }
.snums span { font-size: 12px; color: var(--muted); }
.stats h3 { margin: 0 0 8px; font-size: 15px; }
.dist { display: grid; gap: 4px; }
.drow { display: flex; align-items: center; gap: 8px; }
.drow > span:first-child { width: 12px; text-align: right; }
.dbar { background: #3a3b33; color: #fff; text-align: right; padding: 0 6px; font-weight: 700; font-size: 14px; }
.dbar.now { background: #4c9a3c; }
.snote { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.sharebox { display: grid; justify-items: center; gap: 4px; width: 100%; max-width: 500px; text-align: center; }
.sharebox[hidden], .sharebtn[hidden], .sharemanual[hidden] { display: none; }
.sharebox .snote { margin: 0; }
.sharebtn { padding: 10px 18px; font-weight: 700; background: #4c9a3c; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.stats .sharebtn { display: block; width: 100%; margin-top: 14px; }
.sharemanual { display: grid; gap: 6px; width: 100%; font-size: 13px; color: var(--muted); }
.sharemanual textarea { width: 100%; box-sizing: border-box; font: 16px/1.3 monospace; padding: 8px; }
.offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }
