/* CLAUDE 10-12 (Stickers tab): the sticker editor's Replace row and flips, the animation tiles' pictures, and the sticker
   picker's Favorites states (stickerfx.js, panels.js). Graphite: no box unless it means something; state in white. */
.pic-row {
  display: flex;
  align-items: center;
  gap: var(--s-3, 12px);
  margin-bottom: var(--s-3, 12px);
}
.pic-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-sm);
  background: repeating-conic-gradient(#1d1d1f 0 25%, #161618 0 50%) 0 0 / 12px 12px;
}
.pic-thumb img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.pic-row [data-pic-replace] {
  margin-left: auto;
}
.pic-row [data-pic-replace][aria-expanded='true'] {
  color: var(--c-fg);
  border-color: var(--c-fg);
}
.pic-picker {
  margin: 0 0 var(--s-3, 12px);
}
.pic-picker[hidden] {
  display: none;
}
.pic-picker .cc-emoji-grid {
  max-height: 220px;
}
.pic-flips {
  margin: 4px 0 6px;
}
.tfx-demo img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
}
.pic-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
}
/* the picker's Favorites tab: a quiet empty / error line, and a skeleton while the list loads */
.cc-emoji-tabs button svg {
  display: block;
  margin: 0 auto;
}
.cc-emoji-grid .cc-emoji-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 2px;
}
.cc-emoji-empty b {
  color: var(--c-fg);
  font-size: var(--t-label, 13px);
  font-weight: 600;
}
.cc-emoji-empty span {
  color: var(--c-fg-3, #8d8d90);
  font-size: 12px;
}
.cc-emoji-grid .cc-emoji-skel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
}
.cc-emoji-skel i {
  height: 44px;
  border-radius: var(--r-sm); /* the shimmer is the shared skeleton in editor.css */
}

/* CLAUDE 10-23 (sticker pack): the pack's word tabs (Trending, Creator, Arrows ...) before the emoji groups' icons, in one
   row that scrolls sideways like CapCut's; a Premium sticker's tile has a small gold diamond in its corner (free plan
   only: the word Premium is in its name), and a pack tile plays its own motion on hover */
.cc-emoji-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cc-emoji-tabs::-webkit-scrollbar {
  display: none;
}
.cc-emoji-tabs button {
  flex: none;
  min-width: 34px;
}
.cc-emoji-tabs button[data-word] {
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-fg-3);
}
.cc-emoji-tabs button[data-word][aria-selected='true'] {
  color: var(--c-fg);
}
.cc-emoji-grid button:is([data-m], [data-pro]) {
  position: relative;
}
.pro-free .cc-emoji-grid button[data-pro]::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: var(--c-warn);
  transform: rotate(45deg);
}
.ov-draw-colors {
  margin: 2px 0;
}
/* the hover demo loops (motion.css tokens: one beat is --d-count, a full turn or a draw-on --d-skel) */
@media (prefers-reduced-motion: no-preference) {
  .cc-emoji-grid button[data-m]:is(:hover, :focus-visible) img {
    animation: var(--d-count) ease-in-out infinite;
  }
  .cc-emoji-grid button:is([data-m='pulse'], [data-m='beat'], [data-m='heartbeat']):is(:hover, :focus-visible) img {
    animation-name: stk-pulse;
  }
  .cc-emoji-grid button:is([data-m='bob'], [data-m='float']):is(:hover, :focus-visible) img {
    animation-name: stk-bob;
  }
  .cc-emoji-grid button[data-m='spin']:is(:hover, :focus-visible) img {
    animation-name: stk-spin;
    animation-duration: var(--d-skel);
    animation-timing-function: linear;
  }
  .cc-emoji-grid button:is([data-m='wiggle'], [data-m='swing'], [data-m='shake']):is(:hover, :focus-visible) img {
    animation-name: stk-wiggle;
  }
  .cc-emoji-grid button[data-m='flicker']:is(:hover, :focus-visible) img {
    animation-name: stk-flicker;
  }
  .cc-emoji-grid button[data-m='draw']:is(:hover, :focus-visible) img {
    animation-name: stk-draw;
    animation-duration: var(--d-skel);
    animation-timing-function: var(--ease-out);
  }
  .cc-emoji-grid button:is([data-m='pop'], [data-m='zoom_in'], [data-m='bounce']):is(:hover, :focus-visible) img {
    animation-name: stk-pop;
    animation-duration: var(--d-skel);
  }
  .cc-emoji-grid button:is([data-m^='slide'], [data-m='drop'], [data-m='fade']):is(:hover, :focus-visible) img {
    animation-name: stk-rise;
    animation-duration: var(--d-skel);
  }
}
@keyframes stk-pulse {
  50% {
    transform: scale(1.12);
  }
}
@keyframes stk-bob {
  50% {
    transform: translateY(-4px);
  }
}
@keyframes stk-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stk-wiggle {
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}
@keyframes stk-flicker {
  20%,
  60% {
    opacity: 0.35;
  }
}
/* a line sticker draws itself in from the left (the layer's own draw-on follows its strokes) */
@keyframes stk-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  70%,
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes stk-pop {
  from {
    transform: scale(0.4);
  }
  45% {
    transform: scale(1.15);
  }
  70%,
  to {
    transform: scale(1);
  }
}
@keyframes stk-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  50%,
  to {
    transform: none;
    opacity: 1;
  }
}
/* CLAUDE 10-29 (sticker libraries, panels.js): OpenMoji's category chips and the source credit under the grid; GIPHY's
   tiles are wider (moving stickers, the creator under each), Powered by GIPHY under them */
.cc-emoji-sub {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px 0 4px;
  scrollbar-width: none;
}
.cc-emoji-sub[hidden],
.cc-emoji-credit[hidden] {
  display: none;
}
.cc-emoji-sub button {
  flex: none;
  min-height: 0;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--c-fg-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}
.cc-emoji-sub button[aria-selected='true'] {
  color: var(--c-fg);
  border-color: var(--c-line-2);
}
.cc-emoji-credit {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--c-fg-3);
}
.cc-emoji-credit a {
  color: inherit;
}
.cc-emoji-grid[data-tab='GIPHY'] {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.cc-emoji-grid[data-tab='GIPHY'] button {
  height: 96px;
  grid-template-rows: 1fr auto;
  gap: 2px;
}
.cc-emoji-grid[data-tab='GIPHY'] img {
  width: 76px;
  height: 72px;
}
.cc-emoji-grid[data-tab='GIPHY'] span {
  max-width: 76px;
  overflow: hidden;
  font-size: var(--t-meta);
  color: var(--c-fg-3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
