.pw-grid { display: grid; grid-template-rows: repeat(6, 1fr); gap: 6px; width: min(100%, 330px); margin: 6px auto 0; }
.pw-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pw-row.shake { animation: pw-shake .35s ease; }
.pw-tile { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; font: 800 clamp(1.4rem, 7vw, 2rem)/1 var(--font-display); text-transform: uppercase; background: var(--surface); color: var(--ink); }
.pw-tile.filled { border-color: var(--muted); }
.pw-tile.certo { background: #1d8a4e; border-color: #1d8a4e; color: #fff; }
.pw-tile.presente { background: #e0a800; border-color: #e0a800; color: #1e1600; }
.pw-tile.ausente { background: #7a8784; border-color: #7a8784; color: #fff; }
.pw-tile.flip { animation: pw-flip .45s ease both; }
.pw-msg { font-weight: 700; color: var(--ink); min-height: 1.6em; }
.pw-kb { display: grid; gap: 6px; max-width: 520px; margin: 4px auto 0; user-select: none; -webkit-user-select: none; }
.pw-kb-row { display: flex; gap: 5px; justify-content: center; }
.pw-key { 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; }
.pw-key.wide { flex: 1.6 1 0; max-width: 72px; font-size: .82rem; }
.pw-key:active { transform: translateY(1px); }
.pw-key.certo { background: #1d8a4e; color: #fff; }
.pw-key.presente { background: #e0a800; color: #1e1600; }
.pw-key.ausente { background: #7a8784; color: #fff; opacity: .7; }
@keyframes pw-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes pw-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
