/* Cookie Cutter: a sheet of dough, a rack of cutters and a warm oven */
.ck-col { gap: 0; padding: 4px 8px 6px; justify-content: center; }
.ck-oven {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #4A5637 0%, #2E3723 100%);
  box-shadow: inset 0 0 0 2px rgba(217, 160, 91, 0.55), inset 0 -6px 0 #171C12, 0 6px 14px rgba(0, 0, 0, 0.35);
  direction: ltr;
}
.ck-oven__win {
  flex: none; width: 46px; height: 18px; margin-bottom: 4px;
  border-radius: 6px;
  background: #171C12;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 227, 0.22);
  transition: background 0.5s, box-shadow 0.5s;
}
.ck-oven.is-hot .ck-oven__win { background: #F0523D; box-shadow: inset 0 0 0 2px #FFD45C, 0 0 18px 3px rgba(255, 170, 60, 0.75); }
.ck-oven__label {
  flex: 1 1 auto; min-width: 0; margin-bottom: 4px;
  font: 400 15px/1 var(--font-display); color: #FFE9A6; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ck-oven__knob { flex: none; width: 12px; height: 12px; margin-bottom: 4px; border-radius: 50%; background: #FFD45C; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
.ck-oven__knob + .ck-oven__knob { background: #F0523D; }
.ck-slot { flex: none; padding: 9px 16px 14px; overflow: hidden; }
.ck-sheet {
  padding: 7px;
  border-radius: 14px;
  background: linear-gradient(160deg, #6B7658 0%, #4B553B 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 246, 227, 0.16), inset 0 0 0 5px rgba(23, 28, 18, 0.28), 0 8px 14px rgba(0, 0, 0, 0.4);
}
.ck-slot.is-bake .ck-sheet { transform: translateY(-125%) scale(0.94); transition: transform 0.95s cubic-bezier(0.55, 0, 0.8, 0.45) 0.35s; }
.ck-board {
  position: relative;
  width: 240px; height: 240px;
  direction: ltr;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.ck-cell {
  position: absolute;
  background: #F5E0B3;
  background-image: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.55) 0 7%, rgba(255, 255, 255, 0) 8%), radial-gradient(circle at 70% 66%, rgba(255, 255, 255, 0.4) 0 5%, rgba(255, 255, 255, 0) 6%);
  box-shadow: inset 0 0 0 1px rgba(169, 105, 46, 0.2);
  transition: background-color 0.12s;
}
.ck-cell.ck-hole { background: none; box-shadow: none; }
.ck-cell.is-ok { background-color: #9BD3B0; }
.ck-cookie { position: absolute; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(80, 45, 10, 0.45)); }
.ck-cookie svg, .ck-cutter__art svg, .ck-ghost svg { display: block; width: 100%; height: 100%; }
.ck-cookie.is-pop { animation: ck-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes ck-pop { 0% { transform: scale(1.18); opacity: 0.6; } 60% { transform: scale(0.94); } 100% { transform: scale(1); opacity: 1; } }
.ck-tray {
  --t: 15px;
  flex: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px;
  width: 100%; min-height: 56px;
  direction: ltr;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.ck-cutter {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0;
  border: 0; border-radius: 12px;
  background: rgba(54, 64, 41, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 92, 0.22);
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.ck-cutter__art { display: block; pointer-events: none; transition: transform 0.12s; }
.ck-cutter.is-sel { box-shadow: inset 0 0 0 2px #FFD45C, 0 0 0 3px rgba(255, 212, 92, 0.22); background: rgba(94, 122, 58, 0.6); }
.ck-cutter.is-used { background: rgba(23, 28, 18, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 246, 227, 0.1); cursor: default; }
.ck-cutter.is-used .ck-cutter__art { opacity: 0.16; }
.ck-cutter.is-drag .ck-cutter__art { opacity: 0.25; }
.ck-cutter:active .ck-cutter__art { transform: scale(0.92); }
.ck-cutter:focus-visible { outline: 3px solid #FFF6E3; outline-offset: 2px; }
.ck-cutter.is-no { animation: ck-no 0.3s; }
@keyframes ck-no { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ck-ghost {
  position: fixed; left: 0; top: 0; z-index: 50;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.45));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ck-slot.is-bake .ck-sheet { transition-duration: 0.2s; transition-delay: 0s; }
  .ck-cookie.is-pop, .ck-cutter.is-no { animation: none; }
}
html[lang="ar"] .ck-oven__label { font-family: inherit; font-weight: 700; }
