/* emoji: rules only this page uses (moved out of style.css so other pages don't parse them). */
.ae-search svg { color: var(--muted); flex-shrink: 0; }
.ae-cat {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: 36px;
}
.ae-type-ico {
  font-size: 1.7rem;
  line-height: 1;
}
.ae-type-card span {
  color: var(--muted);
  font-size: 0.85rem;
}
.ae-type-card em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--link);
  margin-top: 0.25rem;
}
.ae-char {
  grid-area: 1 / 1;
  font-size: 1.85rem;
  line-height: 52px;
}
.ae-tile-anim {
  grid-area: 1 / 1;
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}
.ae-tile.has-anim .ae-tile-anim { opacity: 1; }
.ae-tile.has-anim .ae-char { visibility: hidden; }
.ae-also {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ae-panel {
  position: sticky;
  top: 4.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
}
.ae-panel-inner { padding: 1.1rem 1.15rem 1.25rem; display: grid; gap: 0.55rem; }
.ae-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.ae-panel { position: sticky; }
.ae-panel-inner { position: relative; }
.ae-panel-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ae-panel h2 { margin: 0; font-size: 1.25rem; padding-right: 1.5rem; }
.ae-code { margin: 0; font-size: 0.82rem; color: var(--muted); font-family: ui-monospace, monospace; }
.ae-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: color-mix(in srgb, var(--bg) 70%, #fff 8%);
  border-radius: 12px;
}
.ae-preview img { width: 180px; height: 180px; object-fit: contain; }
.ae-formats-label,
.ae-related-label { margin: 0.35rem 0 0; font-weight: 650; font-size: 0.88rem; }
.ae-panel [hidden] { display: none !important; }
.ae-downloads { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.45rem; }
.ae-lottie-url { display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.ae-url-row { display: flex; gap: 0.4rem; }
.ae-url-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font-size: 0.75rem;
}
.ae-note { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.ae-related { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.ae-empty { color: var(--muted); }
@media (max-width: 980px) {
.ae-panel {
    position: fixed;
    inset: auto 0 0;
    top: auto;
    z-index: 40;
    border-radius: 16px 16px 0 0;
    max-height: min(78vh, 640px);
    overflow: auto;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.28);
  }
.ae-preview { min-height: 160px; }
.ae-preview img { width: 128px; height: 128px; }
}
@media (max-width: 720px) {
.ae-hero h1 { font-size: clamp(1.45rem, 6.4vw, 2rem); }
.ae-cat { font-size: 0.8rem; padding: 0.3rem 0.7rem; min-height: 34px; }
}
@media (max-width: 520px) {
.ae-char { font-size: 1.55rem; }
.ae-tile-anim { width: 44px; height: 44px; }
.ae-downloads { grid-template-columns: 1fr; }
}
.ae-h1-page {
  margin-left: 0.35rem;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ae-search-status {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 650;
}
.ae-search-view { margin-bottom: 1.5rem; }
.ae-tile-anim:not([src]) { visibility: hidden; }
.ae-pg-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-pg-gap { padding: 0 0.2rem; color: var(--muted); }
.ae-pg-compact { display: none; font-weight: 650; color: var(--muted); }
@media (max-width: 980px) {
.ae-type-card span { font-size: 0.72rem; }
.ae-type-card em { display: none; }
}
@media (max-width: 720px) {
.ae-cat { flex: none; white-space: nowrap; }
.ae-pg-list { display: none; }
.ae-pg-compact { display: inline; padding: 0 0.6rem; }
}
