#app{flex:1;display:flex;justify-content:center;padding:10px 8px 16px;max-width:900px;margin:0 auto;width:100%}
.board-wrap{width:100%;max-width:480px;display:flex;flex-direction:column;align-items:stretch}
.board-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.clue-current{font-size:.95rem;font-weight:bold;background:var(--panel);border:1px solid var(--cell-border);border-radius:8px;padding:8px 12px;flex:1 1 200px;min-height:1.2em}
.clue-current.oculta{color:var(--muted);font-weight:normal;font-style:italic}
.board-actions{display:flex;gap:6px}
.po-tablero{display:grid;grid-template-rows:repeat(6,1fr);gap:5px;width:min(100%,300px,calc((100svh - 500px) * .83));min-width:172px;margin:0 auto}
.po-fila{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.po-fila.mal{animation:temblor .4s}
@keyframes temblor{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.po-c{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:2px solid var(--cell-border);background:var(--panel);font:800 clamp(1.05rem,4.2svh,1.6rem) system-ui,sans-serif;text-transform:uppercase;border-radius:6px;color:var(--ink)}
.po-c.lleno{border-color:var(--ink)}
.po-c.v,.mini.v,.po-teclado button.v{background:#3d8b4d;border-color:#3d8b4d;color:#fff}
.po-c.a,.mini.a,.po-teclado button.a{background:#d7a900;border-color:#d7a900;color:#fff}
.po-c.g,.mini.g,.po-teclado button.g{background:#7a828e;border-color:#7a828e;color:#fff}
.po-c.gira{animation:gira .45s ease both}
@keyframes gira{0%{transform:rotateX(0)}50%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}
.status{font-weight:700;min-height:1.25em;line-height:1.25em;text-align:center;margin:3px 0 1px}
.po-fin{background:var(--panel);border:1px solid var(--cell-border);border-radius:10px;padding:12px;text-align:center;margin-bottom:10px}
.po-fin .pal{font:800 1.5rem system-ui;letter-spacing:.12em}
.po-fin .cifras{display:flex;justify-content:center;gap:8px;margin:10px 0;flex-wrap:wrap}
.po-fin .cifras div{background:var(--bg);border-radius:8px;padding:6px 10px;font-size:.8rem;color:var(--muted);min-width:70px}
.po-fin .cifras b{display:block;font-size:1.2rem;color:var(--ink)}
.po-fin .dist{text-align:left;font:.8rem system-ui;max-width:260px;margin:0 auto 10px}
.po-fin .dist div{display:flex;align-items:center;gap:6px;margin:2px 0}.po-fin .dist span{background:#7a828e;color:#fff;padding:0 6px;border-radius:3px;min-width:18px;text-align:right}.po-fin .dist span.hoy{background:#3d8b4d}
.po-teclado[hidden]{display:none}
.po-teclado{display:flex;flex-direction:column;gap:5px;margin-top:4px;user-select:none;-webkit-user-select:none}
.po-teclado div{display:flex;gap:4px;justify-content:center}
.po-teclado button{flex:1;max-width:44px;height:50px;padding:0;border:0;border-radius:6px;background:#d8dbe0;color:var(--ink);font:700 1.05rem system-ui,sans-serif;touch-action:manipulation}
.po-teclado button.ancho{max-width:70px;flex:1.6;font-size:.8rem}
.po-ayuda{border:1px solid var(--cell-border);border-radius:12px;max-width:420px;padding:18px}
.po-ayuda h2{margin-top:0}.mini{display:inline-flex;width:1.6em;height:1.6em;align-items:center;justify-content:center;border-radius:4px;font:800 .9rem system-ui}
.status .mini{display:inline-block;width:1.35em;height:1.35em;line-height:1.35em;border-radius:3px;font-size:.8rem;text-align:center;vertical-align:middle}
.po-ley{font-weight:normal;font-size:.82rem;color:var(--muted)}
