/* Emoji notes (emoji.js): the glyph on the map, its outline and the picker */

/* on the map: the glyph is a centred image, the outline follows its silhouette */
.node[data-shape="emoji"] .node-svg { filter: drop-shadow(0 5px 7px color-mix(in srgb, var(--c) 30%, transparent)); }
.node[data-shape="emoji"]:hover .node-svg { filter: drop-shadow(0 9px 12px color-mix(in srgb, var(--c) 36%, transparent)); }
.node .halo.emoji-halo { fill: var(--c); stroke: none; transform: scale(.94); }
.node.selected .halo.emoji-halo { opacity: .55; transform: none; }
.node.touching .halo.emoji-halo { opacity: .4; transform: scale(1.04); }
.emoji-glyph { user-select: none; }
.node[data-shape="emoji"] .node-icon { display: none; }
.node[data-shape="emoji"] .node-mark { color: var(--c); }
.node[data-shape="emoji"] .node-mark svg.i { filter: drop-shadow(0 0 2px var(--bg)) drop-shadow(0 0 3px var(--bg)); }
.node[data-shape="emoji"].done .emoji-glyph { opacity: .45; }

/* the 7th shape button */
.emoji-shape-btn span { font-size: 19px; line-height: 1; filter: grayscale(1) opacity(.55); transition: filter .2s; }
.emoji-shape-btn:hover span, .emoji-shape-btn.active span { filter: none; }
.emoji-shape-btn.active span { animation: bump .45s var(--spring); }

/* the picker */
.emoji-pop { width: 320px; padding: 8px 8px 0; display: flex; flex-direction: column; }
.ep-search {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px;
  border-radius: 10px; background: var(--surface-2); color: var(--text-3);
}
.ep-search svg.i { width: 15px; height: 15px; flex: none; }
.ep-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; outline: none; }
.ep-tabs { display: flex; justify-content: space-between; padding: 6px 0 4px; border-bottom: 1px solid var(--border); }
.ep-tab {
  width: 32px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 17px; line-height: 1; filter: grayscale(1) opacity(.6);
  transition: background-color .15s, filter .15s, transform .25s var(--spring);
}
.ep-tab:hover { background: var(--hover); filter: none; }
.ep-tab.on { background: var(--active); filter: none; }
.ep-tab:active { transform: scale(.88); }
.ep-body { height: 272px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; scrollbar-width: thin; }
.ep-title { position: sticky; top: 0; z-index: 1; padding: 9px 4px 5px; font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--surface); }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.ep-cell {
  height: 36px; border-radius: 9px; display: grid; place-items: center;
  font-size: 23px; line-height: 1;
  transition: background-color .1s, transform .25s var(--spring);
}
.ep-cell:hover { background: var(--hover); transform: scale(1.14); }
.ep-cell:active { transform: scale(.9); transition-duration: .08s; }
.ep-cell.active { background: var(--active); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.ep-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--text-3); }
