/* Pixelmaleren. Hører sammen med scene.js og game.js. Scenen fylder hele skærmen; bjælkerne ligger ovenpå. */
body.bakkegaarden { background: #8ed15a; }
.bakkegaarden .sj-top { position: absolute; top: 0; left: 0; right: 0; }
.bakkegaarden .sj-bottom { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; }
.bakkegaarden .sj-bottom > * { pointer-events: auto; }
.stage { flex: 1 1 auto; min-height: 0; display: flex; }
#scene { flex: 1; width: 100%; height: 100%; display: block; overflow: visible; touch-action: manipulation; user-select: none; -webkit-user-select: none; }

.star { fill: #fff; opacity: .55; stroke: #c98a00; stroke-width: 3; stroke-dasharray: 8 6; }
.star.on { fill: #ffd23f; opacity: 1; stroke-dasharray: none; }

.cell { cursor: pointer; outline: none; }
.cell .hit { fill: #fff; opacity: 0; }
.cell:focus-visible .px { stroke: #1d3557; stroke-width: 6; stroke-dasharray: 10 6; }
.cell .miss { fill: none; stroke: #e63b2e; stroke-width: 6; stroke-dasharray: 10 7; display: none; }
.hint .cell.off .miss { display: inline; animation: blink .9s ease-in-out infinite; }
body.done #laptop, body[data-phase="win"] #laptop { fill: #57d36b; }
body.done #monitor, body[data-phase="win"] #monitor { fill: #1f7a33; }

.swatch { cursor: pointer; outline: none; }
.swatch .ring { fill: #fff; opacity: 0; stroke: #1d3557; stroke-width: 6; }
.swatch:focus-visible .ring { opacity: .6; stroke-dasharray: 10 6; }
.swatch.on .ring { opacity: 1; }
.swatch.on { animation: none; }

@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
    .hint .cell.off .miss { animation: none; }
}
