/* Generated production artwork, scoped to the CRACKLE card. */
.crackle-card-demo{color-scheme:light;--paper:#b9cbdc;--tray:#d2dde4;--ink:#122532;--muted:#344e61;--orange:#f5683b;--red:#e95865;--violet:#aa7ddd;--gold:#f2b93b;--blue:#238db8;--green:#61a951;--cream:#fff9ed;--play-height:100svh;--gutter:12px;font-family:ui-rounded,"SF Pro Rounded","Avenir Next",Avenir,"Segoe UI",sans-serif;font-synthesis:none}
.crackle-card-demo .board-tray{position:relative;padding:10px;border:1px solid #7692a765;border-radius:26px;background:var(--tray);box-shadow:inset 0 4px 4px #ffffffb5,inset 0 -4px 5px #536e855c,0 3px 5px #18384c18;isolation:isolate}
.crackle-card-demo .board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;position:relative;border-radius:17px;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overscroll-behavior:contain}
.crackle-card-demo .board-row{display:contents}
.crackle-card-demo .cell{display:flex;align-items:center;justify-content:center;aspect-ratio:1;padding:0;border:0;background:transparent;border-radius:15px;position:relative;min-width:0;touch-action:none;user-select:none;-webkit-user-select:none;outline:none;isolation:isolate}
.crackle-card-demo .cell::after{content:"";position:absolute;inset:0;border:2px solid transparent;border-radius:15px;z-index:5;pointer-events:none}
.crackle-card-demo .cell:focus-visible{outline:3px solid var(--ink);outline-offset:1px;z-index:6}
.crackle-card-demo .cell.is-selected::after{border-color:var(--ink);box-shadow:0 0 0 2px var(--cream),inset 0 0 0 2px var(--cream)}
.crackle-card-demo .cell.is-hint::after{border-color:var(--ink);border-style:dashed;animation:crackle-card-demo-hint-breathe 1.9s ease-in-out infinite}
.crackle-card-demo .cell.is-hint.is-selected::after{border-style:solid}
.crackle-card-demo .cell.is-selected .candy{transform:translateY(-2px) scale(1.03)}
.crackle-card-demo .candy{position:relative;display:block;width:98%;height:98%;filter:drop-shadow(0 2px 1px #12253235);transform:translateZ(0);pointer-events:none}
.crackle-card-demo .candy-body{display:block;width:100%;height:100%;overflow:visible}
.crackle-card-demo .candy-body .sweet-glint{fill:#fff;opacity:.58}
.crackle-card-demo .candy-body .sweet-shade{fill:var(--ink);opacity:.11}
.crackle-card-demo .candy-symbol{position:absolute;left:35%;top:35%;width:30%;height:30%}
.crackle-card-demo .candy-symbol svg,.crackle-card-demo .core svg{display:block;width:100%;height:100%;overflow:visible;fill:var(--ink);stroke:var(--ink);stroke-width:.6;stroke-linecap:round;stroke-linejoin:round}
.crackle-card-demo .core{position:absolute;left:27%;top:27%;width:46%;height:46%;border:3px solid var(--cream);border-radius:50%;background:var(--core-color);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 1.5px var(--ink),inset 0 0 0 1px var(--ink),inset 0 3px 2px #ffffff55;z-index:2}
.crackle-card-demo .core svg{width:68%;height:68%}
.crackle-card-demo .tutorial-arrow{position:absolute;left:var(--hint-x);top:var(--hint-y);z-index:8;width:24px;height:30px;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);color:var(--ink);pointer-events:none;font-size:28px;font-weight:900;line-height:1;filter:drop-shadow(1px 0 0 var(--cream)) drop-shadow(-1px 0 0 var(--cream)) drop-shadow(0 1px 0 var(--cream)) drop-shadow(0 -1px 0 var(--cream))}
.crackle-card-demo .tutorial-arrow svg{display:block;width:100%;height:100%;fill:var(--ink);stroke:var(--cream);stroke-width:1.6;stroke-linejoin:round}
.crackle-card-demo .tutorial-arrow.is-horizontal{transform:translate(-50%,-50%) rotate(90deg)}
.crackle-card-demo .candy.is-moving{animation:crackle-card-demo-tile-move .22s cubic-bezier(.23,.7,.3,1) both}
.crackle-card-demo .cell.is-popping .candy{animation:crackle-card-demo-sweet-pop .26s cubic-bezier(.3,.1,.7,1) both}
.crackle-card-demo .cell.is-cracking .candy-body{animation:crackle-card-demo-shell-crack .29s ease-out both}
.crackle-card-demo .cell.is-cracking .core{animation:crackle-card-demo-core-reveal .29s cubic-bezier(.15,.7,.3,1) both}
.crackle-card-demo .cell.is-invalid .candy{animation:crackle-card-demo-no-match .22s ease-in-out}
.crackle-card-demo .effects{position:absolute;inset:10px;pointer-events:none;overflow:visible;z-index:10;border-radius:15px}
.crackle-card-demo .particle{position:absolute;width:7px;height:7px;border-radius:2px;left:var(--x);top:var(--y);background:var(--particle-color);transform:translate(-50%,-50%);animation:crackle-card-demo-particle-fly .48s cubic-bezier(.1,.5,.45,1) both;box-shadow:0 0 0 1px #fff9ed90}
.crackle-card-demo .particle.is-shell{width:9px;height:9px;clip-path:polygon(0 0,100% 20%,70% 100%,10% 70%);border-radius:0}
.crackle-card-demo .pop-ring{position:absolute;left:var(--x);top:var(--y);width:18%;aspect-ratio:1;border:3px solid var(--cream);box-shadow:0 0 0 2px var(--particle-color);border-radius:50%;animation:crackle-card-demo-pop-ring .38s ease-out both}
.crackle-card-demo .pulse-ring{position:absolute;left:var(--x);top:var(--y);width:18%;aspect-ratio:1;border:3px solid var(--cream);box-shadow:0 0 0 3px var(--gold);opacity:.9;border-radius:35%;animation:crackle-card-demo-pulse-ring .5s ease-out both}
.crackle-card-demo .candy-body .sweet-glint,.crackle-card-demo .candy-body .sweet-shade{stroke:none}
.crackle-card-demo .tutorial-arrow svg{fill:none;stroke:var(--ink);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
@keyframes crackle-card-demo-tile-move{from{transform:translate(var(--dx,0px),var(--dy,0px))}to{transform:translate(0,0)}}
@keyframes crackle-card-demo-sweet-pop{0%{transform:scale(1)}35%{transform:scale(1.16);filter:brightness(1.3)}100%{transform:scale(.15);opacity:0}}
@keyframes crackle-card-demo-shell-crack{0%{transform:scale(1);opacity:1}36%{transform:scale(1.1);filter:brightness(1.8)}100%{transform:scale(1.34) rotate(8deg);opacity:0}}
@keyframes crackle-card-demo-core-reveal{0%{transform:scale(1)}50%{transform:scale(1.45)}100%{transform:scale(1.72)}}
@keyframes crackle-card-demo-particle-fly{0%{transform:translate(-50%,-50%) scale(.8);opacity:1}100%{transform:translate(calc(-50% + var(--px)),calc(-50% + var(--py))) rotate(var(--pr)) scale(.15);opacity:0}}
@keyframes crackle-card-demo-pop-ring{from{transform:translate(-50%,-50%) scale(.35);opacity:1}to{transform:translate(-50%,-50%) scale(1.35);opacity:0}}
@keyframes crackle-card-demo-pulse-ring{from{transform:translate(-50%,-50%) scale(.35);opacity:1}to{transform:translate(-50%,-50%) scale(2.75);opacity:0}}
@keyframes crackle-card-demo-hint-breathe{0%,100%{opacity:1}50%{opacity:.6}}
@keyframes crackle-card-demo-no-match{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
/* Card composition over the frozen production candy styles. */
.crackle-card-demo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 31% 5%, #deebf4, #b9cbdc 75%, #aebfd0);
}

.crackle-card-demo[hidden] { display: none; }
.crackle-card-demo, .crackle-card-demo * { box-sizing: border-box; pointer-events: none !important; }

.crackle-card-demo .board-tray {
  width: 95%;
  padding: 2.15cqw;
  border: max(1px, .32cqw) solid #8da8be;
  border-radius: 4.7cqw;
  background: linear-gradient(156deg, #e4ecf2, #d2dde4 44%, #b8cad8);
  box-shadow: inset 0 .45cqw 0 #f5fbffb5, inset 0 -.42cqw 0 #819bb171, 0 .65cqw 1cqw #28476045;
}

.crackle-card-demo .board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .42cqw;
  overflow: hidden;
  border-radius: 2.85cqw;
  background: linear-gradient(150deg, #c1d1df, #d2dfe9 32%, #c4d4e0);
  box-shadow: inset 0 .25cqw .4cqw #66839d4a, 0 .22cqw 0 #f1f7fc99;
}

.crackle-card-demo .cell {
  border-radius: 2cqw;
}

.crackle-card-demo .candy {
  filter: drop-shadow(0 .45cqw .32cqw #17293847);
}

.crackle-card-demo .core {
  border-width: .45cqw;
  box-shadow: 0 0 0 .18cqw var(--ink), inset 0 0 0 .12cqw var(--ink), inset 0 .35cqw .35cqw #ffffff60;
}

.crackle-card-demo .effects { inset: 0; }
.crackle-card-demo .particle { width: 1.05cqw; height: 1.05cqw; }
.crackle-card-demo .particle.is-shell { width: 1.45cqw; height: 1.45cqw; }
.crackle-card-demo .pop-ring, .crackle-card-demo .pulse-ring { width: 16%; border-width: .42cqw; }

.crackle-card-demo[data-phase='opening'] { animation: crackle-motion-reveal 140ms ease-out both; }
.crackle-card-demo[data-phase='return'] { animation: crackle-motion-return 400ms ease-in-out both; }
@keyframes crackle-motion-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes crackle-motion-return { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .crackle-card-demo[data-state='playing'] { display: none; }
}

/* At card size the original ease-out moves most of a tile in the first few frames. */
.crackle-card-demo .candy.is-moving {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(.32, .08, .38, 1);
}

.crackle-card-demo .cell.is-cracking .candy-body,
.crackle-card-demo .cell.is-cracking .core {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(.32, .08, .38, 1);
}

.crackle-card-demo .cell.is-popping .candy { animation-duration: 390ms; }
.crackle-card-demo .particle { animation-duration: 440ms; }
.crackle-card-demo .pop-ring { animation-duration: 400ms; }
