.ice-layer, .ice-half, .rink-camera { position: absolute; inset: 0; }
.ice-layer { overflow: hidden; pointer-events: none; }
.ice-layer[hidden] { display: none; }
.ice-half { width: 50%; overflow: hidden; background: var(--surround, #f0f0f0); }
.ice-half.right { left: 50%; }
.rink-camera { width: 200%; display: grid; place-items: center; }
.right .rink-camera { left: auto; right: 0; }
.rink-camera svg { display: block; width: 100%; height: 100%; max-width: 1480px; }

[data-look="draw"] {
  --surround: #fff;
  --ice-fill: #fff;
  --rim: #fff;
  --mark: #929292;
  --board: #686868;
  --crease: #e8e8e8;
}

.rink-erasing .rink-spots { animation: rink-fade .38s ease-in-out .33s both; }
.rink-erasing .rink-circles circle { animation: rink-erase .75s ease-in-out .41s both; }
.rink-erasing .rink-lines path { animation: rink-erase .65s ease-in-out .63s both; }
.rink-erasing .rink-boards rect {
  animation: rink-erase .84s ease-in-out .72s both, rink-fade .08s linear 1.5s both;
}
.rink-erasing .ice-half {
  --exit: -101%;
  animation: rink-part 1.08s cubic-bezier(.65, 0, .3, 1) 1.62s both;
}
.rink-erasing .right { --exit: 101%; }

@keyframes rink-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes rink-erase {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 1; }
}
@keyframes rink-part {
  from { transform: translateX(0); }
  to { transform: translateX(var(--exit)); }
}
@media (prefers-reduced-motion: reduce) {
  .rink-erasing { display: none; }
  .rink-erasing * { animation: none; }
}
