:root {
  --ink: #171717;
  --paper: #fffdf8;
  --surface: #ffffff;
  --muted: #68645f;
  --line: #d9d2c8;
  --accent: #df4f3f;
  --accent-dark: #a52d24;
  --soft: #f4efe7;
  --highlight: #ffd85e;
  --success: #176b45;
  --danger: #a12828;
  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 8px 24px rgba(23, 23, 23, 0.06);
  --shadow-md: 0 18px 48px rgba(23, 23, 23, 0.1);
  --space-1: 0.4rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, canvas, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: none; }

.container { width: min(calc(100% - 32px), var(--max-width)); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.section { padding: var(--space-7) 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-header { max-width: 760px; margin: 0 auto var(--space-5); text-align: center; }
.section-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-kicker::before, .eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.14; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 750; }
h3 { font-size: clamp(1.12rem, 2vw, 1.42rem); font-weight: 700; }
p { margin: 0 0 1rem; }
.section-header p { margin: 0.85rem auto 0; color: var(--muted); font-size: 1.02rem; }
.section-dark .section-header p { color: #d6d0c7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.55rem;
}
.site-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.72rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current='page'] { background: var(--soft); color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.menu-toggle { display: none; }

.button, .icon-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { transform: translateY(-2px); background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.button.accent { background: var(--accent); border-color: var(--accent); }
.button.small { min-height: 36px; padding: 0.52rem 0.78rem; font-size: 0.82rem; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}
.icon-button.secondary { background: var(--surface); color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero { padding: clamp(3rem, 7vw, 6.25rem) 0 0; }
.hero-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy { max-width: none; }
.hero-copy h1 { font-size: clamp(2.25rem, 4.8vw, 4.35rem); }
.hero-copy h1 span { color: var(--accent); }
.hero-copy > p { max-width: none; margin: 1.2rem 0 1.6rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-feature {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--ink);
  background: var(--highlight);
  overflow: hidden;
}
.hero-feature::before, .hero-feature::after {
  content: '';
  position: absolute;
  border: 1px solid var(--ink);
  background: var(--surface);
}
.hero-feature::before { width: 96px; height: 96px; top: -24px; right: -24px; transform: rotate(18deg); }
.hero-feature::after { width: 64px; height: 64px; bottom: 18px; left: -22px; border-radius: 50%; }
.feature-emoji { position: relative; z-index: 1; font-size: clamp(7rem, 15vw, 11rem); line-height: 1; filter: drop-shadow(8px 10px 0 rgba(255,255,255,0.7)); }
.hero-number { position: absolute; top: 18px; left: 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.code-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.4rem; }
.code-chip { padding: 0.4rem 0.65rem; border: 1px solid var(--line); background: var(--surface); font-family: Consolas, Monaco, monospace; font-size: 0.78rem; }

.hero-library { border-top: 1px solid var(--line); background: var(--surface); }
.library-shell { padding: var(--space-5) 0 var(--space-7); }
.library-toolbar { display: grid; gap: 1rem; margin-bottom: 1.3rem; }
.search-row { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 0.75rem; }
.field, .select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 0.72rem 0.85rem;
}
.field:focus, .select:focus { border-color: var(--ink); outline: 3px solid rgba(255, 216, 94, 0.55); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.filter-label { margin-right: 0.2rem; color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.filter-button {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 30px; color: var(--muted); font-size: 0.9rem; }

.emoji-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.emoji-card { position: relative; min-width: 0; background: var(--surface); }
.emoji-card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 178px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  isolation: isolate;
}
.emoji-card-visual::before { content: ''; position: absolute; inset: 18px; z-index: -1; border: 1px solid rgba(23,23,23,0.22); }
.style-minimal { background: #fffdf8; }
.style-neon { background: radial-gradient(circle at 50% 42%, #5d2c9d 0, #1a1026 62%); text-shadow: 0 0 12px #fff, 0 0 28px #d75cff; }
.style-neon::before { border-color: #d75cff; box-shadow: 0 0 18px rgba(215,92,255,.7) inset; }
.style-sticker { background: linear-gradient(135deg, #ffe66b, #ffae52); }
.style-sticker .emoji-glyph { filter: drop-shadow(0 0 0 white) drop-shadow(5px 5px 0 rgba(255,255,255,.9)) drop-shadow(8px 8px 0 rgba(23,23,23,.22)); }
.style-metallic { background: linear-gradient(135deg, #eef2f5 0%, #9da7b0 45%, #f8fbfd 68%, #7a858e 100%); }
.style-metallic .emoji-glyph { filter: grayscale(.2) contrast(1.12) drop-shadow(5px 7px 0 rgba(255,255,255,.6)); }
.style-pixel { background-color: #d9edff; background-image: linear-gradient(90deg, rgba(23,23,23,.09) 1px, transparent 1px), linear-gradient(rgba(23,23,23,.09) 1px, transparent 1px); background-size: 12px 12px; }
.style-pixel .emoji-glyph { image-rendering: pixelated; filter: contrast(1.15); }
.emoji-glyph { display: block; transform: rotate(var(--emoji-rotation, 0deg)); }
.emoji-card:nth-child(3n) .emoji-glyph { --emoji-rotation: -4deg; }
.emoji-card:nth-child(5n) .emoji-glyph { --emoji-rotation: 4deg; }
.emoji-badge { position: absolute; top: 10px; left: 10px; padding: 0.25rem 0.45rem; border: 1px solid var(--ink); background: var(--surface); font-size: 0.66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.favorite-button { position: absolute; top: 9px; right: 9px; z-index: 2; background: rgba(255,255,255,.9); }
.favorite-button.is-favorite { background: var(--highlight); color: var(--ink); }
.emoji-card-body { padding: 1rem; }
.emoji-card-title { display: block; min-height: 2.8em; margin-bottom: 0.3rem; font-size: 0.98rem; line-height: 1.35; }
.emoji-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.74rem; text-transform: capitalize; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.card-actions .details-button { grid-column: 1 / -1; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 1.5rem; }
.empty-state { grid-column: 1 / -1; padding: 3rem 1rem; background: var(--surface); text-align: center; }

.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.info-card { min-width: 0; padding: 1.45rem; background: var(--surface); }
.info-card h3 { margin-bottom: 0.55rem; }
.info-card p:last-child { margin-bottom: 0; }
.number-card { position: relative; padding-top: 4.3rem; }
.number-card::before { content: attr(data-number); position: absolute; top: 1rem; left: 1.4rem; color: var(--accent); font-size: 0.78rem; font-weight: 850; letter-spacing: .12em; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.copy-panel, .content-panel { padding: clamp(1.25rem, 4vw, 2rem); background: var(--surface); }
.copy-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.copy-line:last-child { border-bottom: 0; }
.copy-line code { min-width: 0; overflow-wrap: anywhere; color: var(--accent-dark); }
.mini-emoji-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.mini-emoji { min-height: 132px; padding: 0.9rem; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.mini-emoji span { display: block; margin-bottom: 0.55rem; font-size: 2.6rem; }
.mini-emoji strong { display: block; min-height: 2.5em; font-size: 0.78rem; line-height: 1.3; }
.mini-emoji button { margin-top: 0.65rem; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.category-card { display: flex; flex-direction: column; min-height: 230px; padding: 1.4rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.category-card:hover { transform: translateY(-3px); border-color: var(--ink); color: var(--ink); }
.category-samples { margin: 1rem 0; font-size: 2rem; letter-spacing: 0.1em; }
.category-card .button { margin-top: auto; align-self: flex-start; }
.use-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.use-item { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.2rem; border-top: 1px solid var(--ink); background: var(--surface); }
.use-icon { font-size: 2rem; }
.combination-toolbar { justify-content: center; margin-bottom: 1.25rem; }
.combination-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.combination-card { padding: 1.3rem; border: 1px solid var(--line); background: var(--surface); }
.combination-text { margin-bottom: 0.65rem; font-size: 2rem; }
.chat-list { display: grid; gap: 0.8rem; max-width: 820px; margin-inline: auto; }
.chat-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.chat-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--highlight); font-weight: 850; }
.chat-bubble { padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.symbol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.symbol-card { padding: 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.symbol-card code { display: block; min-height: 3.5em; white-space: pre-wrap; }
.png-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.png-card { padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.checkerboard { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 0.85rem; border: 1px solid var(--line); background-color: #fff; background-image: linear-gradient(45deg,#ddd 25%,transparent 25%),linear-gradient(-45deg,#ddd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ddd 75%),linear-gradient(-45deg,transparent 75%,#ddd 75%); background-size: 22px 22px; background-position: 0 0,0 11px,11px -11px,-11px 0; font-size: 5.5rem; }

.generator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.generator-controls, .generator-preview { padding: clamp(1.2rem, 4vw, 2rem); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.82rem; font-weight: 750; }
.check-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.check-label { display: inline-flex; align-items: center; gap: 0.45rem; }
#emoji-generator-canvas { display: block; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--line); background-image: linear-gradient(45deg,#eee 25%,transparent 25%),linear-gradient(-45deg,#eee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eee 75%),linear-gradient(-45deg,transparent 75%,#eee 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.comparison-table th, .comparison-table td { padding: 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { background: var(--soft); }
.related-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.related-card { padding: 1rem 0.7rem; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.related-card span { display: block; font-size: 2.8rem; }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.support-card { padding: 1.2rem; border-top: 3px solid var(--ink); background: var(--surface); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.blog-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--highlight), #f6a369); color: var(--ink); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 850; }
.blog-cover::before { content: ''; position: absolute; width: 42%; aspect-ratio: 1; top: -20%; right: -9%; border: 1px solid currentColor; border-radius: 50%; }
.blog-cover::after { content: ''; position: absolute; width: 30%; aspect-ratio: 1; bottom: -18%; left: -7%; border: 1px solid currentColor; transform: rotate(25deg); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem; }
.blog-date { color: var(--muted); font-size: 0.78rem; }
.blog-card h3 { margin: 0.45rem 0 0.7rem; }
.blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent-dark); }
.blog-card .button { margin-top: auto; align-self: flex-start; }

.faq-tools { max-width: 680px; margin: 0 auto 1rem; }
.faq-list { max-width: 880px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: grid; grid-template-columns: 1fr auto; gap: 1rem; width: 100%; padding: 1.2rem 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 800; }
.faq-question span:last-child { font-size: 1.4rem; }
.faq-answer { padding: 0 0 1.2rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 880px; }
.page-hero p { max-width: 720px; margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; color: var(--muted); font-size: 0.82rem; }
.breadcrumbs a { color: inherit; }
.directory-tools { display: grid; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--surface); }
.directory-top-row { display: grid; grid-template-columns: minmax(220px,1fr) 190px auto; gap: 0.75rem; }
.library-subsection { margin-top: 2rem; }
.subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.saved-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.saved-card { padding: 0.8rem; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.saved-card .emoji { display: block; font-size: 2.3rem; }
.code-list { display: grid; gap: 0.35rem; margin: 0.8rem 0; font-size: 0.72rem; }
.code-list code { overflow-wrap: anywhere; }

.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; padding: var(--space-6) 0 var(--space-7); }
.article-content { min-width: 0; }
.article-content h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.article-content h3 { margin: 1.7rem 0 0.6rem; }
.article-content p, .article-content li { color: #3f3c38; }
.article-content ul, .article-content ol { padding-left: 1.25rem; }
.article-lead { font-size: 1.13rem; color: var(--muted) !important; }
.article-note { padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--soft); }
.article-sidebar { position: sticky; top: calc(var(--header-height) + 20px); display: grid; gap: 1rem; }
.sidebar-card { padding: 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.sidebar-card h3 { margin-bottom: 0.65rem; }
.sidebar-links { display: grid; gap: 0.5rem; }
.sidebar-links a { color: var(--ink); font-size: 0.88rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }
.related-posts { padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-content h2 { margin: 2rem 0 0.7rem; font-size: 1.7rem; }
.legal-content h3 { margin: 1.4rem 0 0.5rem; }
.contact-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.3rem; border: 1px solid var(--line); background: var(--surface); }
.email-text { font-family: Consolas, Monaco, monospace; overflow-wrap: anywhere; }

.site-footer { padding: 3.2rem 0 1.3rem; border-top: 1px solid var(--line); background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { color: var(--ink); }
.footer-brand p { max-width: 320px; margin-top: 1rem; color: #c9c3ba; }
.footer-column h3 { margin-bottom: 0.75rem; font-size: 1rem; letter-spacing: 0; }
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a { color: #d8d2ca; font-size: 0.86rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-email { color: #d8d2ca; font-size: 0.86rem; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid #3f3f3f; color: #b9b3aa; font-size: 0.78rem; text-align: center; }
.footer-bottom a { color: #fff; }

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.68); }
.modal-dialog { width: min(100%, 660px); max-height: min(90vh, 760px); overflow: auto; border: 1px solid var(--ink); background: var(--paper); box-shadow: var(--shadow-md); }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-body { padding: 1.2rem; }
.modal-emoji { display: grid; place-items: center; min-height: 210px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--soft); font-size: 7rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.detail-item { padding: 0.75rem; border: 1px solid var(--line); background: var(--surface); }
.detail-item strong { display: block; margin-bottom: .25rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.status-region { position: fixed; left: 50%; bottom: 18px; z-index: 3000; transform: translateX(-50%); min-width: min(90vw, 320px); padding: .8rem 1rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-align: center; box-shadow: var(--shadow-md); }
.scroll-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; opacity: 0; pointer-events: none; transform: translateY(10px); }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Deterministic seed variations. Seed 5 is the selected editorial treatment. */
.seed-1 .hero-editorial { text-align: center; grid-template-columns: 1fr; }
.seed-1 .hero-copy { margin-inline: auto; }
.seed-1 .hero-feature { width: min(100%, 420px); margin-inline: auto; border-radius: var(--radius-lg); }
.seed-1 .library-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
.seed-1 .library-toolbar { align-content: start; }
.seed-1 .search-row { grid-template-columns: 1fr; }
.seed-1 .filter-row { align-items: stretch; flex-direction: column; }
.seed-1 .emoji-grid { grid-template-columns: repeat(3, 1fr); border-radius: var(--radius-lg); overflow: hidden; }
.seed-2 { --paper:#0c0b14; --surface:#151222; --ink:#f8f6ff; --muted:#b9b2cc; --line:#373047; --accent:#66ffdc; --accent-dark:#66ffdc; --soft:#1c1730; --highlight:#ff46df; }
.seed-2 .hero-editorial { grid-template-columns: 1fr 1fr; }
.seed-2 .hero-feature, .seed-2 .emoji-card, .seed-2 .info-card { box-shadow: 0 0 0 1px #66ffdc, 0 0 24px rgba(102,255,220,.12); }
.seed-2 .filter-row { justify-content: center; }
.seed-2 .button { border-radius: 999px; }
.seed-3 { --paper:#f5f8ff; --surface:rgba(255,255,255,.7); --soft:#e8efff; --line:rgba(63,84,130,.18); --accent:#7655d8; --accent-dark:#5436b8; }
.seed-3 body { background: radial-gradient(circle at 15% 10%,#dff7ff,transparent 35%), radial-gradient(circle at 90% 20%,#efe0ff,transparent 35%),var(--paper); }
.seed-3 .site-header, .seed-3 .hero-feature, .seed-3 .emoji-card, .seed-3 .info-card { backdrop-filter: blur(18px); border-radius: 24px; }
.seed-3 .emoji-grid { gap: 1rem; border: 0; background: transparent; }
.seed-4 .hero-editorial { grid-template-columns: repeat(3,1fr); align-items: stretch; }
.seed-4 .hero-copy { grid-column: span 2; padding: 2rem; border: 1px solid var(--line); }
.seed-4 .hero-feature { min-height: 100%; border-radius: var(--radius-lg); }
.seed-4 .code-chips { display: grid; grid-template-columns: repeat(2,1fr); }
.seed-4 .emoji-grid { border-radius: var(--radius-lg); overflow:hidden; }
.seed-5 .site-header { box-shadow: none; }
.seed-5 .emoji-card, .seed-5 .blog-card, .seed-5 .info-card { box-shadow: none; border-radius: 0; }
.seed-5 .hero-copy { border-left: 6px solid var(--accent); padding-left: clamp(1rem,3vw,2rem); }
.seed-5 .button { border-radius: 2px; }
.seed-6 { --paper:#fff; --surface:#fff; --soft:#f5f5f5; --line:#111; --accent:#176b45; --accent-dark:#176b45; --highlight:#d6ff6b; }
.seed-6 .site-header { min-height: 60px; }
.seed-6 .header-inner { min-height: 60px; }
.seed-6 .hero-feature, .seed-6 .emoji-card-visual, .seed-6 .button, .seed-6 .field, .seed-6 .select { border-radius:0; }
.seed-6 .emoji-grid { gap:.65rem; border:0; background:transparent; }
.seed-6 .emoji-card { border:1px solid #111; }
.seed-7 { --paper:#fff8fb; --surface:#fff; --soft:#f5ecff; --line:#ead8e6; --accent:#e35d9a; --accent-dark:#b73772; --highlight:#ffe6a8; }
.seed-7 .hero-feature, .seed-7 .emoji-card, .seed-7 .info-card, .seed-7 .blog-card { border-radius:28px; }
.seed-7 .emoji-grid { gap:1rem; border:0; background:transparent; }
.seed-7 .button, .seed-7 .field, .seed-7 .select { border-radius:999px; }
.seed-8 { --paper:#08100f; --surface:#0c1917; --ink:#d6ffe9; --muted:#91b5a5; --line:#1e4a3d; --accent:#53ff9a; --accent-dark:#53ff9a; --soft:#0d211d; --highlight:#ffcb45; }
.seed-8 body { background-image: linear-gradient(rgba(83,255,154,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(83,255,154,.05) 1px,transparent 1px); background-size:28px 28px; }
.seed-8 .button, .seed-8 .emoji-card, .seed-8 .hero-feature { border-radius:0; box-shadow:0 0 18px rgba(83,255,154,.08); }
.seed-8 h1,.seed-8 h2,.seed-8 h3,.seed-8 code { font-family:Consolas,Monaco,monospace; }
.seed-9 { --paper:#fffaf0; --soft:#fff0d0; --accent:#e33b52; --accent-dark:#ad1e35; --highlight:#77e1ff; }
.seed-9 .emoji-grid { gap:1rem; border:0; background:transparent; }
.seed-9 .emoji-card { border:2px solid var(--ink); border-radius:18px; box-shadow:6px 6px 0 var(--ink); }
.seed-9 .emoji-card:nth-child(odd){ transform:rotate(-.5deg); }
.seed-9 .emoji-card:nth-child(even){ transform:rotate(.5deg); }
.seed-9 .button { border-radius:14px; box-shadow:3px 3px 0 var(--ink); }
.seed-10 { --accent:#5e4ad1; --accent-dark:#3b2aa4; --highlight:#ff9fd1; }
.seed-10 .hero { background:linear-gradient(135deg,#fff0f7,#eeeaff); }
.seed-10 .hero-editorial { min-height:650px; align-items:center; }
.seed-10 .hero-feature { border:0; border-radius:36px; box-shadow:var(--shadow-md); }
.seed-10 .section:nth-of-type(even){ background:var(--soft); }
.seed-10 .emoji-grid { gap:1rem; border:0; background:transparent; }
.seed-10 .emoji-card { border-radius:20px; box-shadow:var(--shadow-sm); overflow:hidden; }
.seed-11 .header-inner { grid-template-columns:auto auto 1fr; }
.seed-11 .site-nav { justify-self:start; }
.seed-11 .hero-editorial { grid-template-columns: 1fr 300px; }
.seed-11 .library-shell { display:grid; grid-template-columns:240px 1fr; gap:1rem; }
.seed-11 .search-row { grid-template-columns:1fr; }
.seed-11 .filter-row { display:grid; grid-template-columns:1fr 1fr; }
.seed-11 .emoji-grid { grid-template-columns:repeat(5,1fr); }
.seed-11 .emoji-card-visual { min-height:140px; }
.seed-12 .hero-editorial { grid-template-columns:1fr; text-align:center; }
.seed-12 .hero-copy { margin-inline:auto; }
.seed-12 .hero-feature { width:380px; min-height:380px; margin-inline:auto; border-radius:50%; }
.seed-12 .hero-feature::before,.seed-12 .hero-feature::after { border-radius:50%; }
.seed-12 .emoji-grid { border-radius:50px 50px 0 0; overflow:hidden; }

@media (max-width: 1100px) {
  .header-actions .header-copy { display: none; }
  .nav-link { padding-inline: .55rem; }
  .emoji-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-emoji-grid { grid-template-columns: repeat(4, 1fr); }
  .related-row { grid-template-columns: repeat(3, 1fr); }
  .seed-11 .emoji-grid { grid-template-columns:repeat(4,1fr); }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .site-header { min-height: var(--header-height); }
  .header-inner { grid-template-columns: auto 1fr auto; min-height: var(--header-height); }
  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem 16px 1.4rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .nav-list { align-items: stretch; flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; padding: .8rem; }
  .menu-toggle { display: inline-grid; }
  .header-actions { justify-self: end; }
  .header-actions .header-download { display:none; }
  .hero-editorial, .seed-2 .hero-editorial, .seed-4 .hero-editorial, .seed-11 .hero-editorial { grid-template-columns: 1fr; }
  .seed-4 .hero-copy { grid-column:auto; }
  .hero-feature { width: min(100%, 520px); min-height: 280px; }
  .emoji-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid, .category-grid { grid-template-columns: repeat(2,1fr); }
  .combination-grid, .png-grid, .symbol-grid, .support-grid { grid-template-columns: repeat(2,1fr); }
  .generator-layout, .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .seed-1 .library-shell,.seed-11 .library-shell { display:block; }
  .seed-11 .emoji-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 720px) {
  :root { --space-7: 3.5rem; }
  .container, .narrow { width: min(calc(100% - 24px), var(--max-width)); }
  .brand-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap:.35rem; }
  .hero { padding-top: 2.5rem; }
  .hero-editorial { gap: 2rem; }
  .hero-copy h1 { font-size: clamp(2.15rem, 10vw, 3.05rem); }
  .hero-feature { min-height: 250px; }
  .search-row, .directory-top-row { grid-template-columns: 1fr; }
  .emoji-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .emoji-card-visual { min-height: 150px; }
  .emoji-card-body { padding: .8rem; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions .details-button { grid-column:auto; }
  .editorial-grid, .two-column, .category-grid, .use-list, .blog-grid { grid-template-columns: 1fr; }
  .mini-emoji-grid { grid-template-columns: repeat(3,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column:auto; }
  .saved-strip { grid-template-columns: repeat(3,1fr); }
  .copy-line { grid-template-columns: 1fr auto; }
  .copy-line strong { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
  .contact-card { grid-template-columns:1fr; }
  .detail-grid { grid-template-columns:1fr; }
  .comparison-table { font-size:.86rem; }
  .comparison-table th,.comparison-table td { padding:.7rem; }
  .seed-12 .hero-feature { width:min(100%,320px); min-height:320px; }
}

@media (max-width: 480px) {
  .brand-mark { width:38px; height:38px; font-size:1.35rem; }
  .brand-name { font-size:.9rem; max-width:105px; }
  .button-row .button { width:100%; }
  .hero-feature { min-height:220px; }
  .feature-emoji { font-size:7rem; }
  .code-chips { display:grid; grid-template-columns:1fr 1fr; }
  .code-chip { overflow-wrap:anywhere; }
  .emoji-card-visual { min-height:134px; font-size:3.8rem; }
  .emoji-card-title { font-size:.88rem; }
  .emoji-meta { font-size:.68rem; }
  .card-actions .button { min-height:34px; padding:.45rem .55rem; font-size:.75rem; }
  .mini-emoji-grid { grid-template-columns:repeat(2,1fr); }
  .combination-grid,.png-grid,.symbol-grid,.support-grid { grid-template-columns:1fr; }
  .related-row { grid-template-columns:repeat(2,1fr); }
  .saved-strip { grid-template-columns:repeat(2,1fr); }
  .modal-emoji { min-height:170px; font-size:5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact heading treatment inside editorial cards. */
.blog-card h2,
.category-card h2 {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  letter-spacing: -0.025em;
}
.blog-card h2 a,
.category-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card h2 a:hover,
.category-card h2 a:hover { color: var(--accent-dark); }

.seed-3 {
  background: radial-gradient(circle at 15% 10%,#dff7ff,transparent 35%), radial-gradient(circle at 90% 20%,#efe0ff,transparent 35%),var(--paper);
}
.seed-8 {
  background-image: linear-gradient(rgba(83,255,154,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(83,255,154,.05) 1px,transparent 1px);
  background-size:28px 28px;
}


/* SEO image and equal-width media enhancement */
.hero-feature.media-feature { min-height: 0; aspect-ratio: 16 / 9; background: var(--surface); }
.hero-feature.media-feature::before, .hero-feature.media-feature::after { display: none; }
.hero-main-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-feature.media-feature .hero-number { z-index: 2; padding: 0.48rem 0.68rem; border: 1px solid var(--ink); background: rgba(255,253,248,.94); }
.section-wide-media { width: 100%; margin: 0 0 clamp(1.4rem, 4vw, 2.2rem); }
.section-feature-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.blog-cover-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.article-feature-media { width: 100%; margin: 0 0 1.6rem; }
.article-feature-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.article-content, .article-content > *, .section-wide-media, .section-wide-media img { max-width: 100%; }
.article-content p, .article-content ul, .article-content ol, .article-content h2, .article-content h3, .article-content .article-note, .article-content .related-posts { width: 100%; }
@media (max-width: 900px) {
  .hero-feature.media-feature { width: 100%; }
}

/* Homepage hero — Seed 5: text left, image right */
.seed-5 .hero-editorial {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
}
.seed-5 .hero-copy {
  width: 100%;
  margin: 0;
}
.seed-5 .hero-feature.media-feature {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  justify-self: end;
}
@media (max-width: 900px) {
  .seed-5 .hero-editorial {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .seed-5 .hero-copy {
    order: 1;
  }
  .seed-5 .hero-feature.media-feature {
    order: 2;
    width: min(100%, 620px);
    margin-inline: auto;
    justify-self: center;
  }
}
