.art-piece{position:relative;isolation:isolate;overflow:hidden}
.art-piece::before{content:"";position:absolute;inset:9%;background-image:var(--piece-url);background-repeat:no-repeat;background-position:var(--piece-position);background-size:var(--piece-size);pointer-events:none;z-index:-1}
.art-symbol::before{inset:14%}
.art-symbol{color:transparent!important;text-shadow:none!important}
.art-symbol::before{z-index:0}
.art-surface::before{inset:0;opacity:.95}
.art-surface.art-shade::before{opacity:.32}
#game-dialog .fusion-cell.art-surface{color:#182631!important;text-shadow:0 1px 0 #ffffff70;box-shadow:inset 0 0 0 1px #ffffff14;font-weight:850;background:transparent!important}
#game-dialog .fusion-cell.art-surface[data-empty=true]{box-shadow:none}
#game-dialog .fusion-selected.art-surface{box-shadow:inset 0 0 0 4px #ee8de5,0 0 15px #c33dac44}
#game-dialog .memory-cell.art-piece,.online-memory-cell.art-piece{background:linear-gradient(145deg,#171c36,#292442);border-color:#968bc0;box-shadow:inset 0 0 15px #090d1c}
#game-dialog .memory-cell.matched.art-piece,.online-memory-cell.is-matched.art-piece{border-color:#b3d994;background:linear-gradient(135deg,#1b372e,#101f26)}
#game-dialog .memory-cell:not(.flipped):not(.matched),.online-memory-cell:not(.is-revealed):not(.is-matched){background:radial-gradient(circle,#513b7b 0,#2d224b 60%,#171329 100%);box-shadow:inset 0 0 0 3px #302441,inset 0 0 0 4px #76608055}
#game-dialog .mine-cell.art-surface{background:#1a2721;border-color:#435547}
#game-dialog .mine-cell.revealed.art-surface{background:#17252a;text-shadow:0 1px 2px #030910;font-weight:850}
#game-dialog .mine-cell.revealed.art-surface.art-shade::before{opacity:.22}
#game-dialog .mine-cell.art-symbol::before{inset:11%}
#game-dialog .mine-cell.detonated.art-symbol{background:#592432;box-shadow:0 0 0 2px #ff9b9b,0 0 22px #ff607777}
#game-dialog .mine-cell.mine-exit.art-surface:not(.revealed){color:#15351b;font-weight:900;text-shadow:0 1px 0 #ffffff88}
#game-dialog .mine-cell.mine-cleared.art-symbol::after{content:"✓";position:absolute;bottom:1px;right:1px;color:#fff;background:#1d603e;border-radius:50%;font-size:12px;line-height:16px;width:16px;height:16px}
#game-dialog .memory-snapshot .memory-cell.art-piece{border-color:#c7a76a;background:#2e2632}
#game-dialog .fusion-alchemy .fusion-cell.art-surface::before{inset:2%;border-radius:50%}
#game-dialog .memory-sequence .memory-cell.art-piece{background:#12313c;color:#d1eeed;border-color:#49818c}
#game-dialog .memory-sequence .memory-cell.flipped.art-piece{background:#b5ffe3;color:#12352c;border-color:#d5fff2;box-shadow:0 0 20px #68edda77}
#game-dialog .memory-sequence .memory-cell.flipped.art-piece::before{opacity:.5}
@supports(width:1cqw){
 .art-symbol{container-type:size}
 .art-symbol::before,#game-dialog .mine-cell.art-symbol::before{inset:auto;left:50%;top:50%;width:min(76cqw,calc(76cqh * var(--piece-ratio)));height:auto;aspect-ratio:var(--piece-ratio);transform:translate(-50%,-50%)}
}
@media(prefers-reduced-motion:reduce){.art-piece{animation:none!important;transition:none!important}}
