/* Cyber Scientific: clues remain stationary; only the recovered scheme glows. */
.nonogram-game{--nonogram-edge:rgba(119,188,211,.33);--nonogram-light:#9fece9;display:grid;gap:12px;width:100%;max-width:560px;margin:10px auto;contain:layout style;color:#d7e8ee}
.nonogram-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.nonogram-tools button{display:flex;align-items:center;justify-content:center;gap:7px;margin:0;min-width:0;min-height:48px;padding:9px 5px;border:1px solid var(--nonogram-edge);border-radius:12px;background:rgba(14,41,57,.86);font:inherit;font-size:16px;color:#d7e8ee;touch-action:manipulation}.nonogram-tools button>span{font-size:20px;line-height:1}.nonogram-tools button[aria-pressed=true]{border-color:#8cdbdf;background:rgba(51,105,122,.56);box-shadow:inset 0 0 0 1px rgba(140,219,223,.22)}
.nonogram-matrix{display:grid;grid-template-columns:minmax(36px,auto) repeat(var(--nonogram-size),minmax(0,1fr));grid-template-rows:auto repeat(var(--nonogram-size),minmax(0,1fr));gap:2px;align-items:stretch;width:100%;padding:6px;border:1px solid var(--nonogram-edge);border-radius:14px;background:rgba(4,21,37,.88);overflow:hidden;position:relative;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;isolation:isolate}
.nonogram-corner{grid-column:1;grid-row:1;min-height:40px}.nonogram-clue{display:flex;justify-content:flex-end;align-items:center;gap:5px;min-width:0;min-height:32px;padding:3px;color:#d7e8ee;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.05}.nonogram-clue.complete{color:#77c5b5}.nonogram-col-clue{flex-direction:column;justify-content:flex-end;padding-bottom:6px}.nonogram-row-clue{padding-right:7px}.nonogram-clue span{display:block}
.nonogram-cell{appearance:none!important;display:grid;place-items:center;position:relative;width:100%;height:auto;aspect-ratio:1;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;line-height:1!important;border:1px solid rgba(94,155,183,.32)!important;border-radius:5px!important;background:rgba(27,57,77,.76)!important;box-shadow:none!important;color:#aac2cf!important;touch-action:none;transition:background-color .12s ease,border-color .12s ease;outline-offset:-3px}
.nonogram-cell.filled{background:linear-gradient(145deg,rgba(88,207,218,.96),rgba(28,102,144,.96))!important;border-color:rgba(170,242,244,.78)!important;box-shadow:inset 0 1px 0 rgba(231,255,255,.3)!important}.nonogram-cell.empty{background:rgba(8,27,43,.85)!important}.nonogram-empty-mark{font-size:clamp(19px,4.7vw,27px);font-weight:400;line-height:1;opacity:0;pointer-events:none}.nonogram-cell.empty .nonogram-empty-mark{opacity:1}.nonogram-cell:disabled{opacity:1!important;cursor:default}.nonogram-cell.fixed{box-shadow:inset 0 0 0 2px rgba(187,239,232,.7)!important}.nonogram-cell.fixed::after{content:'';position:absolute;bottom:3px;right:3px;width:4px;height:4px;background:#effcff;border-radius:1px;pointer-events:none}.nonogram-game button:focus-visible{outline:2px solid #ffc36c;outline-offset:2px}.nonogram-cell:focus-visible{outline-offset:-3px}
.nonogram-progress{min-height:23px;text-align:center;font-size:16px;line-height:1.35;color:#bcd2de;font-variant-numeric:tabular-nums}.nonogram-actions{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px}.nonogram-actions button{min-width:0;min-height:50px;margin:0;padding:10px;font-size:18px;line-height:1.25;touch-action:manipulation}.nonogram-actions button:disabled{opacity:.45}.nonogram-game.won .nonogram-matrix{border-color:#85d9cf;box-shadow:0 0 15px rgba(65,184,192,.23)}.nonogram-game.won .nonogram-matrix::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;background:linear-gradient(110deg,transparent 30%,rgba(196,255,250,.18) 48%,transparent 63%);transform:translateX(-110%);animation:nonogram-scheme-scan .85s ease-out forwards}.nonogram-game.won .nonogram-progress{color:#91e2cc}.nonogram-game.checked-wrong .nonogram-progress{color:#ffc27e}
.nonogram-check-progress{display:none;font-variant-numeric:tabular-nums}
.nonogram-actions button[hidden]{display:none!important}
.play-nonogram #arcade-controls:empty{display:none!important}
@keyframes nonogram-scheme-scan{to{transform:translateX(110%)}}
@media(min-width:430px){.nonogram-matrix{padding:8px;gap:3px;grid-template-columns:48px repeat(var(--nonogram-size),minmax(0,1fr))}.nonogram-clue{font-size:19px;gap:7px}.nonogram-cell{border-radius:7px!important}}
@media(max-width:360px){.nonogram-game{gap:10px}.nonogram-tools{gap:5px}.nonogram-tools button{font-size:14px;gap:4px;min-height:46px}.nonogram-matrix{padding:4px;grid-template-columns:38px repeat(var(--nonogram-size),minmax(0,1fr))}.nonogram-clue{font-size:14px;gap:3px}.nonogram-row-clue{padding-right:3px}.nonogram-actions button{font-size:16px;min-height:48px}}
@media(max-height:640px) and (max-width:430px){.nonogram-game{margin:0 auto;gap:4px}.nonogram-tools button{min-height:44px;padding-inline:3px;font-size:13px!important;gap:3px}.nonogram-tools button>span{font-size:16px}.nonogram-clue{font-size:13px;gap:2px;padding:2px}.nonogram-col-clue{padding-bottom:4px}.nonogram-corner{min-height:30px}.nonogram-progress:not(.notice){position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%)}.nonogram-progress.notice{min-height:18px;font-size:14px}.nonogram-check-progress{display:inline}.nonogram-actions button{padding-inline:6px!important;font-size:15px!important}}
@media(max-height:640px) and (max-width:430px){.play-nonogram{gap:3px}.android-shell #content .play-nonogram:has(.nonogram-progress.notice) .arcade-toolbar,.android-shell #content:has(.nonogram-progress.notice) .session-toolbar{min-height:52px!important;height:52px!important;padding:3px 8px!important;margin-bottom:0!important}}
@media(prefers-reduced-motion:reduce){.nonogram-game *{animation:none!important;transition:none!important}.nonogram-game.won .nonogram-matrix::after{display:none}}
