/* Daily Word Puzzle */
#daily{max-width:560px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:.5rem;overflow:auto}
.dw-top{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;justify-content:center;width:100%}
.dw-top h1{margin:0 .3rem 0 0;font:700 1.3rem Georgia,serif;color:var(--g)}
.dw-langs{display:flex;gap:.25rem}
.dw-help{font-size:.9rem;line-height:1.45;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.3rem .8rem;width:100%;box-sizing:border-box}
.dw-mini{display:inline-flex;width:1.4rem;height:1.4rem;align-items:center;justify-content:center;border-radius:4px;color:#fff;font-weight:700;font-size:.8rem;vertical-align:middle}
.dw-msg{min-height:1.5rem;font-weight:700;text-align:center}
.dw-grid{display:grid;gap:6px}
.dw-line{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.dw-t{width:min(13vw,3.4rem,calc((100vh - 360px)/6.6));height:min(13vw,3.4rem,calc((100vh - 360px)/6.6));min-width:2.2rem;min-height:2.2rem;display:flex;align-items:center;justify-content:center;border:2px solid var(--line);border-radius:6px;font:700 clamp(1.1rem,6vw,1.75rem) Georgia,serif;text-transform:uppercase;background:var(--card);color:var(--ink);box-sizing:border-box}
#daily.is-g .dw-t,#daily.is-g .dw-k{font-family:"Gentium Book Plus",Georgia,serif}
.dw-t.full{border-color:var(--muted)}
.s0{background:#6b726e !important;border-color:#6b726e !important;color:#fff !important}
.s1{background:#c49a1a !important;border-color:#c49a1a !important;color:#fff !important}
.s2{background:#1e7a46 !important;border-color:#1e7a46 !important;color:#fff !important}
.dw-t.flip{animation:dwflip .5s ease both;animation-delay:var(--d)}
@keyframes dwflip{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}
.dw-line.shake{animation:dwshake .35s}
@keyframes dwshake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@media (prefers-reduced-motion:reduce){.dw-t.flip,.dw-line.shake{animation:none}}
.dw-kb{display:flex;flex-direction:column;gap:6px;width:100%;max-width:520px;margin-top:.3rem}
.dw-row{display:flex;gap:5px;justify-content:center}
.dw-k{flex:1 1 0;max-width:2.7rem;height:3.1rem;padding:0;border:0;border-radius:6px;background:#d6ddd8;color:#1d2320;font:700 1.05rem system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.dw-k.wide{flex:1.6 1 0;max-width:4.3rem;font-size:.8rem}
html[data-theme="dark"] .dw-k{background:#48574e;color:#e6ece8}
.dw-k:focus-visible,.dw-langs .bg-btn:focus-visible{outline:3px solid #b8963e;outline-offset:1px}
.dw-end{text-align:center;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.3rem 1rem .5rem;width:100%;box-sizing:border-box}
.dw-end p{margin:.3rem 0}
.dw-ans{font-size:2rem;color:var(--g);margin:0 !important}
.dw-eng{color:var(--muted);font-style:italic}
.dw-btns{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center}
.dw-btns a.bg-btn{text-decoration:none;box-shadow:none}
.dw-stats{display:flex;flex-wrap:wrap;gap:.3rem 1rem;justify-content:center;width:100%}
.dw-dist{flex-basis:100%;max-width:300px;display:grid;gap:3px}
.dw-dist div{display:flex;align-items:center;gap:.4rem}.dw-dist i{font-style:normal;width:.8rem}
.dw-dist b{background:#1e7a46;color:#fff;text-align:right;padding:0 .3rem;border-radius:3px;font-size:.75rem;box-sizing:border-box}
.gwrap>#daily{max-width:none}
@media (max-height:560px) and (orientation:landscape){
  #daily{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"top top" "help help" "grid msg" "grid kb" "grid end" "grid stats";align-content:start;column-gap:1rem;row-gap:.3rem}
  .dw-top{grid-area:top}.dw-help{grid-area:help}.dw-msg{grid-area:msg}.dw-grid{grid-area:grid}.dw-kb{grid-area:kb;margin:0}.dw-end{grid-area:end}.dw-stats{grid-area:stats}
  .dw-t{width:calc((100vh - 120px)/6.4);height:calc((100vh - 120px)/6.4);min-width:1.8rem;min-height:1.8rem;font-size:1.2rem}
  .dw-k{height:2.5rem}
}
