.dq-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); width: min(100%, 560px); margin: 6px auto 0; }
[data-words="4"] .dq-boards { width: min(100%, 640px); }
.dq-board { padding: 6px; border-radius: 12px; border: 2px solid transparent; }
.dq-board.solved { border-color: #1d8a4e; background: rgba(29, 138, 78, .06); }
.dq-board.missed { border-color: #c8323a; }
.dq-head { margin: 0 0 4px; text-align: center; font-weight: 800; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.dq-board.solved .dq-head { color: #1d8a4e; }
.dq-grid { display: grid; gap: 3px; }
.dq-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.dq-row.shake { animation: dq-shake .35s ease; }
.dq-tile { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 6px; font: 800 clamp(.8rem, 3.6vw, 1.35rem)/1 var(--font-display); text-transform: uppercase; background: var(--surface); color: var(--ink); }
[data-words="4"] .dq-tile { font-size: clamp(.7rem, 3vw, 1.05rem); border-width: 1.5px; }
.dq-row.now .dq-tile { border-color: var(--muted); }
.dq-tile.certo { background: #1d8a4e; border-color: #1d8a4e; color: #fff; }
.dq-tile.presente { background: #e0a800; border-color: #e0a800; color: #1e1600; }
.dq-tile.ausente { background: #7a8784; border-color: #7a8784; color: #fff; }
.dq-msg { font-weight: 700; color: var(--ink); min-height: 1.6em; text-align: center; }
.dq-kb { display: grid; gap: 6px; max-width: 540px; margin: 4px auto 0; user-select: none; -webkit-user-select: none; }
.dq-kb-row { display: flex; gap: 5px; justify-content: center; }
.dq-key { position: relative; flex: 1 1 0; max-width: 46px; min-height: 54px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 12%, var(--surface)); color: var(--ink); font: 800 1rem var(--font-body); cursor: pointer; touch-action: manipulation; padding: 0; overflow: hidden; }
.dq-key b { position: relative; z-index: 1; text-shadow: 0 0 3px rgba(255, 255, 255, .6); }
.dq-key.wide { flex: 1.6 1 0; max-width: 72px; font-size: .82rem; }
.dq-key-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(min(var(--n), 2), 1fr); }
.dq-key-bg i.certo { background: #1d8a4e; }
.dq-key-bg i.presente { background: #e0a800; }
.dq-key-bg i.ausente { background: #b9c1bf; }
.dq-key-bg i.done { background: transparent; }
@keyframes dq-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .dq-row.shake { animation: none; } }
