/* The flavour wash sits on the page paper, behind both the text and the model. */
.nic-cursor-light, .nic-colour-wipe, .nic-flavour-burst, .nic-ribbon-confetti {
  position: absolute;
  pointer-events: none;
}
.nic-cursor-light {
  top: 0;
  left: 0;
  width: clamp(200px, 26vw, 360px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff9ec70, transparent 69%);
  background: radial-gradient(circle, color-mix(in srgb, var(--nic-glow,#dcc3bf) 17%, #fffaf1) 0%, transparent 70%);
  transition: opacity .32s ease-out;
}
.nic-cursor-light.nic-lit { opacity: .28; }
.nic-colour-wipe {
  transform: translate(-50%, -50%) scale(.01);
  border-radius: 50%;
  background: radial-gradient(closest-side,var(--nic-wash) 0 58%,transparent 100%);
  background: radial-gradient(closest-side,color-mix(in srgb, var(--nic-wash) 68%, #fff9ef) 0 58%,transparent 100%);
  opacity: 0;
}
.nic-flavour-burst { inset: 0; overflow: clip; }
.nic-speck {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 6px;
  box-shadow: inset 0 1px 1px #fff9e659;
  opacity: 0;
  animation: nic-scatter .8s var(--delay,0ms) cubic-bezier(.18,.72,.3,1) both;
}
.nic-rose .nic-speck { width: 13px; height: 7px; border-radius: 95% 8% 88% 16%; }
.nic-pistachio .nic-speck { width: 9px; height: 7px; clip-path:polygon(5% 35%,40% 3%,95% 26%,70% 94%,7% 79%); }
.nic-caramel .nic-speck { width: 6px; height: 12px; border-radius: 60% 60% 75% 28%; }
.nic-cocoa .nic-speck { width: 8px; height: 7px; clip-path:polygon(6% 13%,85% 0%,97% 75%,31% 97%); }
.nic-berry .nic-speck { width: 8px; height: 8px; border-radius: 48% 50% 52% 47%; }
@keyframes nic-scatter {
  0% { opacity:0;transform:translate3d(var(--x0),var(--y0),0) rotate(var(--r0)) scale(.42); }
  18% { opacity:.88; }
  100% { opacity:0;transform:translate3d(var(--x1),var(--y1),0) rotate(var(--r1)) scale(1.05); }
}
.nic-tilt-control {
  position:absolute;z-index:8;inset:auto auto 2% 50%;translate:-50% 0;
  min-height:44px;padding:0 6px;border:0;background:transparent;
  color:var(--wine,#672a3d);font:550 13px/1.2 var(--sans, sans-serif);
  text-decoration:underline;text-underline-offset:4px;text-decoration-color:#72344866;
  cursor:pointer;
}
.nic-tilt-control:hover,.nic-tilt-control[aria-pressed="true"] {text-decoration-color:currentColor}
.nic-tilt-control:focus-visible {outline:2px solid currentColor;outline-offset:2px;border-radius:4px}
.nic-tilt-control[hidden],.nic-count-display[hidden] { display:none!important; }
.nic-count-host { display:block;position:relative; }
.nic-count-display { position:absolute;inset:0;margin:0;pointer-events:none; }
.nic-count-running { opacity:0; }
.nic-ribbon-confetti {
  z-index: 1;
  left: 10%;
  right: 8%;
  top: 3px;
  height: 84px;
  overflow: clip;
}
.nic-ribbon-confetti i {
  position:absolute;left:55%;top:6px;width:3px;height:8px;border-radius:1px;
  opacity:0;
  animation:nic-ribbon .76s var(--delay,0ms) cubic-bezier(.17,.68,.29,1) both;
}
@keyframes nic-ribbon {
  0% { opacity:0;transform:translate3d(0,0,0) rotate(0) scale(.65); }
  16% { opacity:.72; }
  100% { opacity:0;transform:translate3d(var(--dx),var(--dy),0) rotate(var(--r1)) scale(.8); }
}
@media (hover:hover) and (pointer:fine) {
  .nic-magnetic { translate:var(--nic-mx,0px) var(--nic-my,0px);
    transition:translate .24s cubic-bezier(.2,.75,.25,1),background-color .2s,transform .2s; }
}
@media (hover:none), (pointer:coarse) { .nic-cursor-light { display:none; } }
@media (max-width:420px) {
  .nic-rose .nic-speck { width:9px;height:5px; }
  .nic-caramel .nic-speck { height:9px; }
}
