.ng-help { position:absolute; z-index:5; right:18px; bottom:max(18px, env(safe-area-inset-bottom)); width:44px; height:44px; border:2px solid #20335a; border-radius:50%; background:#fffdf8; color:#20335a; font:bold 22px sans-serif; cursor:pointer; }
.ng-tutorial[hidden] { display:none; }
.ng-tutorial { position:absolute; z-index:100; inset:0; display:flex; align-items:center; justify-content:center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background:#f4f0e6; color:#20335a; font-family:Atkinson Hyperlegible, sans-serif; box-sizing:border-box; }
.ng-trace { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.ng-card { width:min(100%, 390px); text-align:center; }
.ng-top { display:flex; align-items:center; justify-content:space-between; font-size:22px; }
.ng-top button, .ng-next { min-height:44px; border:0; border-radius:8px; background:#d7e5fc; color:#20335a; padding:0 16px; font:inherit; cursor:pointer; }
.ng-prompt { min-height:3em; font-size:18px; font-weight:bold; display:flex; align-items:center; justify-content:center; }
.ng-grid { display:grid; grid-template-columns:44px repeat(5, minmax(0, 1fr)); grid-template-rows:48px repeat(5, 1fr); width:100%; aspect-ratio: 1 / 1; gap:2px; touch-action:none; }
.ng-clue { display:flex; justify-content:center; align-items:center; font-weight:bold; font-size:16px; }
.ng-clue.active { color:#225fc1; background:#d7e5fc; border-radius:5px; }
.ng-cell { border:2px solid #8798b5; background:#fffdf8; color:#20335a; font-size:30px; touch-action:none; padding:0; }
.ng-cell.target { background:#d7e5fc; border-color:#326cc7; }
.ng-cell.filled { background:#376fc9; }
.ng-feedback { min-height:1.5em; margin:8px 0; }
.ng-next { background:#376fc9; color:white; font-weight:bold; }
.shake { animation:ng-shake .25s; }
@keyframes ng-shake { 25%,75% { transform:translateX(-4px); } 50% { transform:translateX(4px); } }
@media (prefers-reduced-motion:reduce) { .shake { animation:none; } }
