.tile { position: absolute; background: conic-gradient(from -45deg, var(--top) 0deg 90deg, var(--face) 90deg 180deg, var(--dark) 180deg 270deg, var(--light) 270deg); }
.tile::before { content: ''; position: absolute; inset: 0; background: var(--top); clip-path: polygon(0 0,100% 0,88% 12%,12% 12%); }
.tile::after { content: ''; position: absolute; inset: 11%; background: linear-gradient(155deg,var(--light),var(--face)); }
.cell > .tile { inset: 1%; }
.blue { --light:#599eff; --face:#3c7af5; --top:#9ae1ff; --dark:#173e97; }
.green { --light:#37dc57; --face:#13b747; --top:#8bf992; --dark:#087334; }
.red { --light:#f44555; --face:#d82643; --top:#ff919c; --dark:#8f1531; }
.gold { --light:#ffcf30; --face:#f5a90d; --top:#fff19a; --dark:#bb7200; }
.purple { --light:#b262ef; --face:#923cda; --top:#e19cff; --dark:#632797; }
.aqua { --light:#83e1f7; --face:#53c1e6; --top:#c9faff; --dark:#2985ab; }
.orange { --light:#ff9739; --face:#f66118; --top:#ffcb97; --dark:#ae3d0b; }
.ghost { opacity:.42; }
.flash { position:absolute; inset:0; background:var(--face); pointer-events:none; animation: dissolve .46s ease-out forwards; }
@keyframes dissolve { from { opacity:.95; box-shadow:0 0 14px var(--light); } to { opacity:0; transform:scale(.78,.28); } }
.shape { position:relative; filter:drop-shadow(4px 5px 0 #14244080); }
.shape .tile { width:var(--unit); height:var(--unit); left:calc(var(--x) * var(--unit)); top:calc(var(--y) * var(--unit)); border:0.5px solid #0003; }
#floating { position:fixed; z-index:2; pointer-events:none; }
