section.pixelReveal > .wrap { position: relative; }
section.pixelReveal .pixel-reveal-error[hidden] { display: none; }
section.pixelReveal .section-welcome { position: relative; z-index: 1; }
section.pixelReveal.is-playing .section-welcome { display: none; }
section.pixelReveal .section-game { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; opacity: .4; pointer-events: none; }
section.pixelReveal.is-playing .section-game { opacity: 1; pointer-events: auto; }
section.pixelReveal .pixel-reveal-result { position: absolute; top: 8px; left: 40px; right: 40px; color: #7131e8; font-weight: 700; text-align: center; }
section.pixelReveal .pixel-reveal-board { position: absolute; inset: 40px; display: grid; grid-auto-rows: minmax(0, 1fr); border-top: 1px solid var(--rududu-black); border-left: 1px solid var(--rududu-black); background: transparent; }
section.pixelReveal .pixel-reveal-cell { position: relative; min-width: 0; min-height: 0; border: 0; border-right: 1px solid var(--rududu-black); border-bottom: 1px solid var(--rududu-black); border-radius: 0; background: transparent; overflow: hidden; transition: background-color .35s; }
section.pixelReveal button.pixel-reveal-cell { width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
section.pixelReveal button.pixel-reveal-cell:focus-visible { z-index: 1; outline: 2px solid #7131e8; outline-offset: -3px; }
section.pixelReveal .pixel-reveal-cell.is-filled { background: #222328; }
section.pixelReveal .pixel-reveal-cell.is-filled:hover { background: #222328; }
section.pixelReveal .pixel-reveal-board.is-complete .pixel-reveal-cell.is-filled,
section.pixelReveal .pixel-reveal-board.is-complete .pixel-reveal-cell.is-filled:hover { background: #873cf4; }
section.pixelReveal .pixel-reveal-dot-x,
section.pixelReveal .pixel-reveal-dot-y { position: absolute; width: var(--dot-size); height: var(--dot-size); pointer-events: none; }
section.pixelReveal .pixel-reveal-dot-x { top: 0; left: 0; animation: pixelRevealX var(--dot-x-duration) linear infinite alternate; animation-delay: var(--dot-x-delay); }
section.pixelReveal .pixel-reveal-dot-y { top: 0; left: 0; animation: pixelRevealY var(--dot-y-duration) linear infinite alternate; animation-delay: var(--dot-y-delay); }
section.pixelReveal .pixel-reveal-dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: #292a30; }
section.pixelReveal .pixel-reveal-cell.is-filled .pixel-reveal-dot-x { display: none; }
section.pixelReveal .pixel-reveal-next { position: absolute; bottom: 24px; left: 50%; z-index: 2; display: none; align-items: center; justify-content: center; font-family: inherit; font-size: 12px; font-weight: inherit; line-height: inherit; padding: 4px 8px; border: 1px solid var(--rududu-black); border-radius: 999px; color: var(--rududu-black); background: var(--rududu-background); transform: translateX(-50%); text-align: center; }
section.pixelReveal.is-playing:not(.is-creating) .pixel-reveal-next { display: inline-flex; }
section.pixelReveal .pixel-reveal-next .material-symbols-outlined { font-size: 24px; line-height: 1; }
section.pixelReveal .pixel-reveal-editor[hidden] { display: none; }
section.pixelReveal .pixel-reveal-editor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 100%; }
section.pixelReveal .pixel-reveal-editor input { width: min(220px, 100%); min-height: 36px; padding: 4px 8px; border: 1px solid var(--rududu-black); border-radius: 6px; background: var(--rududu-background); color: var(--rududu-text); font: inherit; }
section.pixelReveal .pixel-reveal-editor button { min-height: 36px; padding: 4px 12px; border: 1px solid var(--rududu-black); border-radius: 999px; background: var(--rududu-background); color: var(--rududu-text); font: inherit; }
section.pixelReveal .pixel-reveal-save-status { flex-basis: 100%; min-height: 1.5em; text-align: center; }
section.pixelReveal.is-creating .section-game { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; }
section.pixelReveal.is-creating .pixel-reveal-board { position: relative; inset: auto; width: min(100%, max(160px, calc(100dvh - 220px))); aspect-ratio: 1; flex: none; }
section.pixelReveal.is-creating .pixel-reveal-cell.is-filled { background: #873cf4; }
section.pixelReveal .pixel-reveal-error { color: #b52046; }
#asideLAYOUT .tools-pixelReveal:not(.is-game-active) [action="stop"],
#asideLAYOUT .tools-pixelReveal.is-game-active [action="create"] { display: none; }
@keyframes pixelRevealX { to { transform: translateX(var(--dot-travel-x)); } }
@keyframes pixelRevealY { to { transform: translateY(var(--dot-travel-y)); } }
@media (prefers-reduced-motion: reduce) {
    section.pixelReveal .pixel-reveal-cell { transition: none; }
    section.pixelReveal .pixel-reveal-dot-x,
    section.pixelReveal .pixel-reveal-dot-y { animation: none; }
}
