:root {
  --color-primary: #6d4aff;
  --color-primary-dark: #5033d8;
  --color-secondary: #ff6b35;
  --color-accent: #17b890;
  --color-ink: #172033;
  --color-muted: #637083;
  --color-surface: #ffffff;
  --color-soft: #f6f5ff;
  --color-soft-2: #fff7f1;
  --color-line: #e7e3f4;
  --color-dark: #111827;
  --max-width: 1180px;
  --space-1: .375rem;
  --space-2: .625rem;
  --space-3: .875rem;
  --space-4: 1.125rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: .75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 8px 24px rgba(32, 22, 76, .07);
  --shadow-md: 0 18px 45px rgba(32, 22, 76, .11);
  --shadow-focus: 0 0 0 4px rgba(109, 74, 255, .2);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: .75rem;
  color: #fff;
  background: var(--color-dark);
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section--soft { background: var(--color-soft); }
.section--warm { background: var(--color-soft-2); }
.section-heading { max-width: 760px; margin: 0 auto var(--space-7); text-align: center; }
.section-heading--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .6rem;
  color: var(--color-primary-dark);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; border-radius: 999px; }
h1, h2, h3, h4 { margin: 0 0 .8rem; line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--color-muted); }
.lead { font-size: clamp(1.02rem, 2vw, 1.2rem); }
.small { font-size: .88rem; }
.muted { color: var(--color-muted); }
.text-center { text-align: center; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .9rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--color-primary), #896dff); box-shadow: 0 10px 25px rgba(109, 74, 255, .22); }
.btn--secondary { color: #fff; background: linear-gradient(135deg, var(--color-secondary), #ff8d45); }
.btn--outline { color: var(--color-ink); background: #fff; border-color: var(--color-line); }
.btn--soft { color: var(--color-primary-dark); background: #eeeaff; }
.btn--dark { color: #fff; background: var(--color-dark); }
.btn--small { min-height: 38px; padding: .55rem .75rem; font-size: .82rem; }
.btn--icon { width: 42px; min-width: 42px; padding: 0; }
.btn[aria-pressed="true"], .filter-chip.is-active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #eeebff;
  font-size: .75rem;
  font-weight: 800;
}
.chip-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  border: 1px solid var(--color-line);
  border-radius: .75rem;
  color: var(--color-ink);
  background: rgba(255,255,255,.86);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .84rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 227, 244, .85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; }
.brand__emoji {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4d8, #eae4ff);
  box-shadow: inset 0 0 0 1px rgba(109,74,255,.12);
  font-size: 1.65rem;
}
.site-nav { justify-self: center; }
.site-nav__list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: .62rem .65rem; border-radius: .65rem; font-size: .87rem; font-weight: 700; color: #455066; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-primary-dark); background: var(--color-soft); }
.header-actions { display: flex; gap: .55rem; }
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: .8rem;
  background: #fff;
}
.mobile-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--color-ink); border-radius: 999px; transition: transform var(--transition), opacity var(--transition); }

.hero {
  position: relative;
  padding: 2rem 0 var(--space-8);
  background:
    radial-gradient(circle at 8% 8%, rgba(255,107,53,.12), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(109,74,255,.15), transparent 30%),
    linear-gradient(180deg, #fbfaff 0%, #fff 70%);
}
.hero-bento {
  display: grid;
  grid-template-columns: 1.45fr .8fr .75fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-bottom: 2rem;
}
.bento-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.hero-intro { grid-row: 1 / span 2; padding: clamp(1.5rem, 4vw, 3rem); }
.hero-intro p { max-width: 650px; }
.hero-intro::after {
  content: '🤯';
  position: absolute;
  right: -1.2rem;
  bottom: -3rem;
  font-size: clamp(7rem, 18vw, 14rem);
  opacity: .06;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero-feature {
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #ffefe3, #f0ebff 62%, #eafff9);
}
.featured-emoji {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 34px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 20px 40px rgba(72, 44, 142, .16), inset 0 0 0 1px rgba(255,255,255,.72);
  font-size: 5.2rem;
  transform: rotate(3deg);
}
.hero-codes { padding: 1.25rem; }
.hero-codes .chip-list { display: grid; }
.hero-stats { padding: 1.25rem; background: var(--color-dark); color: #fff; }
.hero-stats p { color: #cbd5e1; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.stat { padding: .85rem; border: 1px solid rgba(255,255,255,.12); border-radius: .9rem; background: rgba(255,255,255,.05); }
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: #cbd5e1; font-size: .75rem; }

.directory-shell {
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.directory-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: .4rem .4rem 1rem; }
.directory-header p { margin: 0; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(135px, .65fr)) auto;
  gap: .7rem;
  margin-bottom: .8rem;
}
.field { display: grid; gap: .35rem; }
.field label { color: #3f4b5e; font-size: .75rem; font-weight: 800; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: .7rem .8rem;
  border: 1px solid #dcd8e9;
  border-radius: .8rem;
  color: var(--color-ink);
  background: #fff;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: .75rem 0 1rem; }
.filter-chip {
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: #455066;
  background: #fff;
  font-size: .8rem;
  font-weight: 800;
}
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .2rem; }
.result-bar strong { color: var(--color-primary-dark); }
.emoji-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.emoji-card {
  position: relative;
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--color-line);
  border-radius: 1.2rem;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.emoji-card:hover { transform: translateY(-4px); border-color: #cfc7f4; box-shadow: var(--shadow-sm); }
.emoji-card__visual {
  position: relative;
  display: grid;
  min-height: 145px;
  place-items: center;
  overflow: hidden;
  margin-bottom: .8rem;
  border-radius: .95rem;
  background: linear-gradient(145deg, #f3efff, #fff5ea);
}
.emoji-card__main { position: relative; z-index: 3; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; filter: drop-shadow(0 8px 12px rgba(52,34,110,.16)); transition: transform var(--transition), filter var(--transition); }
.emoji-card__visual::before, .emoji-card__visual::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); }
.emoji-card__visual::before { width: 80px; height: 80px; left: -25px; top: -25px; }
.emoji-card__visual::after { width: 45px; height: 45px; right: 8px; bottom: 8px; }
.emoji-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.emoji-card h3 { min-width: 0; margin: 0; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emoji-card__sub { display: flex; gap: .3rem; margin-top: .25rem; color: var(--color-muted); font-size: .72rem; }
.emoji-card__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-top: .75rem; }
.emoji-card__actions .btn { min-width: 0; padding-inline: .3rem; }
.favorite-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: #7b8494;
  background: #fff;
  font-size: 1rem;
}
.favorite-btn[aria-pressed="true"] { color: #c62867; background: #fff0f5; border-color: #ffc4d8; }
.load-more-wrap { display: flex; justify-content: center; padding: 1.25rem 0 .3rem; }
.empty-state { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; border: 1px dashed var(--color-line); border-radius: 1rem; }

.style-gradient .emoji-card__visual { background: linear-gradient(135deg, #dcd2ff, #ffe0c6); }
.style-outline .emoji-card__main { color: transparent; text-shadow: 0 0 0 #fff; -webkit-text-stroke: 2px #392b74; filter: none; }
.style-neon .emoji-card__visual { background: #121222; }
.style-neon .emoji-card__main { filter: drop-shadow(0 0 9px #a68cff) drop-shadow(0 0 18px #ff8b5e); }
.style-sticker .emoji-card__main { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 10px 12px rgba(0,0,0,.18)); transform: rotate(-5deg); }
.style-pixel .emoji-card__visual { image-rendering: pixelated; background: repeating-linear-gradient(0deg, #f3efff 0 10px, #fff 10px 20px); }
.style-pixel .emoji-card__main { filter: contrast(1.25); }
.style-metallic .emoji-card__visual { background: linear-gradient(145deg, #d6d9e0, #fff, #9ba2ad); }
.style-metallic .emoji-card__main { filter: grayscale(.25) contrast(1.1) drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.style-minimal .emoji-card__visual { background: #fff; border: 1px solid #e7e7e7; }
.style-bubble .emoji-card__visual { border-radius: 999px; background: radial-gradient(circle at 30% 25%, #fff, #f3dcff 38%, #d0fff1); }
.style-glass .emoji-card__visual { background: linear-gradient(145deg, rgba(205,227,255,.7), rgba(255,221,239,.7)); backdrop-filter: blur(8px); }
.style-shadow .emoji-card__main { filter: drop-shadow(16px 18px 0 rgba(109,74,255,.13)); }
.color-orange .emoji-card__visual { --card-color: #ff8a45; }
.color-blue .emoji-card__visual { --card-color: #4b88ff; }
.color-pink .emoji-card__visual { --card-color: #ee5c9e; }
.color-green .emoji-card__visual { --card-color: #24a86b; }
.color-gold .emoji-card__visual { --card-color: #d6a013; }
.color-red .emoji-card__visual { --card-color: #e24d4d; }
.color-teal .emoji-card__visual { --card-color: #0b9f99; }
.color-mono .emoji-card__visual { --card-color: #252525; }
.color-rainbow .emoji-card__visual { background: linear-gradient(135deg, #ffd9d9, #fff1b8, #d8ffe5, #dbe9ff, #eadcff); }
.emoji-card:not(.color-rainbow) .emoji-card__visual { box-shadow: inset 0 -4px 0 var(--card-color, rgba(109,74,255,.22)); }


/* Homepage visual scenes: each card is a distinct Mind Blown Emoji composition. */
.emoji-card__rays,
.emoji-card__companion,
.emoji-card__scene-badge { position: absolute; pointer-events: none; }
.emoji-card__rays {
  z-index: 1;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--card-color, #6d4aff) 48%, transparent) 0 8deg, transparent 8deg 18deg);
  opacity: .42;
  -webkit-mask: radial-gradient(circle, transparent 0 35%, #000 36% 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 0 35%, #000 36% 68%, transparent 69%);
}
.emoji-card__companion { z-index: 4; line-height: 1; filter: drop-shadow(0 5px 7px rgba(30,24,58,.18)); }
.emoji-card__companion--one { left: 13%; top: 18%; font-size: 1.55rem; transform: rotate(-14deg); }
.emoji-card__companion--two { right: 12%; bottom: 18%; font-size: 1.4rem; transform: rotate(12deg); }
.emoji-card__scene-badge {
  z-index: 5;
  right: .55rem;
  top: .55rem;
  max-width: 72px;
  padding: .22rem .42rem;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px;
  color: #fff;
  background: var(--card-color, #6d4aff);
  box-shadow: 0 5px 12px rgba(35,23,80,.16);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
}
.emoji-card:hover .emoji-card__main { transform: scale(1.08) rotate(-2deg); }
.visual-variant-2 .emoji-card__main { transform: rotate(4deg) scale(.96); }
.visual-variant-3 .emoji-card__main { transform: translateY(-5px) scale(1.04); }
.visual-variant-4 .emoji-card__main { transform: rotate(-5deg); }
.visual-variant-5 .emoji-card__main { transform: translateY(4px) scale(.93); }
.visual-variant-2 .emoji-card__companion--one { left: auto; right: 15%; top: 12%; }
.visual-variant-2 .emoji-card__companion--two { right: auto; left: 12%; bottom: 14%; }
.visual-variant-3 .emoji-card__scene-badge { right: auto; left: .55rem; }
.visual-variant-4 .emoji-card__rays { transform: rotate(18deg) scale(1.15); }
.visual-variant-5 .emoji-card__rays { transform: scale(.82); opacity: .65; }

.scene-burst { background: radial-gradient(circle at 50% 52%, #fff 0 24%, transparent 25%), conic-gradient(from 15deg, #ffe47a, #ff9b6a, #dba7ff, #7ddcff, #ffe47a); }
.scene-burst .emoji-card__rays { width: 145px; height: 145px; opacity: .75; }
.scene-electric { background: linear-gradient(145deg, #111529, #291b50); }
.scene-electric::before { width: 150%; height: 3px; left: -25%; top: 48%; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, #70e8ff 8px 16px); transform: rotate(-18deg); opacity: .7; }
.scene-electric .emoji-card__main { filter: drop-shadow(0 0 8px #7de8ff) drop-shadow(0 0 17px #bc7cff); }
.scene-brainwave { background: radial-gradient(circle at 50% 45%, #fff 0 24%, #e9dcff 25% 48%, #c5f8ff 49% 100%); }
.scene-brainwave::after { width: 110%; height: 44px; right: -5%; bottom: 13px; border-radius: 0; background: repeating-radial-gradient(ellipse at center, transparent 0 7px, rgba(93,61,184,.22) 8px 10px, transparent 11px 17px); }
.scene-cosmic { background: radial-gradient(circle at 28% 25%, #8b72ff 0 2px, transparent 3px), radial-gradient(circle at 72% 35%, #fff 0 2px, transparent 3px), radial-gradient(circle at 64% 75%, #ffcb6b 0 2px, transparent 3px), linear-gradient(145deg, #17152d, #3d2368 55%, #1b4b70); }
.scene-cosmic .emoji-card__rays { opacity: .8; background: conic-gradient(from 0deg, transparent, #bca7ff, transparent, #6ee7ff, transparent); }
.scene-firestorm { background: radial-gradient(circle at 50% 78%, #fff0b6 0 18%, transparent 19%), linear-gradient(145deg, #4a1222, #d64a22 58%, #ffb934); }
.scene-firestorm::before { width: 125px; height: 125px; left: 50%; top: 48%; transform: translate(-50%, -50%); background: conic-gradient(from 10deg, #ffed7a, #ff6a2a, #b6203b, #ffed7a); clip-path: polygon(50% 0,61% 28%,88% 12%,75% 42%,100% 50%,74% 60%,89% 88%,60% 74%,50% 100%,40% 74%,11% 88%,26% 59%,0 50%,26% 41%,12% 12%,40% 28%); opacity: .68; }
.scene-confetti { background: linear-gradient(135deg, #fff7d6, #ffe3ee 48%, #e3edff); }
.scene-confetti::before { inset: 0; width: auto; height: auto; border-radius: inherit; background: repeating-linear-gradient(35deg, transparent 0 17px, rgba(109,74,255,.18) 18px 21px, transparent 22px 31px); }
.scene-neon-ring { background: #11121d; }
.scene-neon-ring .emoji-card__rays { width: 128px; height: 128px; opacity: 1; background: conic-gradient(#ff62b8, #8d7cff, #50e8ff, #ffcf58, #ff62b8); -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 47% 56%, transparent 57%); mask: radial-gradient(circle, transparent 0 46%, #000 47% 56%, transparent 57%); filter: blur(1px) drop-shadow(0 0 9px #8d7cff); }
.scene-sticker-stack { background: repeating-linear-gradient(-45deg, #fff 0 12px, #f6f1ff 12px 24px); }
.scene-sticker-stack .emoji-card__main { filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 10px 10px rgba(28,20,60,.18)); }
.scene-pixel-burst { border-radius: .35rem; background: repeating-linear-gradient(0deg, #201d3b 0 9px, #2f2a56 9px 18px); }
.scene-pixel-burst::after { width: 86px; height: 86px; right: 50%; bottom: 50%; transform: translate(50%,50%); border-radius: 0; background: conic-gradient(#ffe465 0 12.5%, #ff735f 0 25%, #8d7cff 0 37.5%, #65e1ff 0 50%, #ffe465 0 62.5%, #ff735f 0 75%, #8d7cff 0 87.5%, #65e1ff 0); clip-path: polygon(40% 0,60% 0,64% 32%,100% 36%,100% 56%,67% 61%,62% 100%,41% 100%,36% 66%,0 61%,0 40%,32% 35%); opacity: .65; }
.scene-metallic-orbit { background: linear-gradient(145deg, #eff1f5, #9ca4b0 45%, #fff 64%, #737b88); }
.scene-metallic-orbit .emoji-card__rays { border: 3px solid rgba(44,51,64,.28); background: transparent; -webkit-mask: none; mask: none; transform: rotate(-20deg) scaleX(1.2); }
.scene-comic-pop { background: radial-gradient(#3c2c65 1.2px, transparent 1.2px), #ffec68; background-size: 7px 7px; }
.scene-comic-pop::before { width: 128px; height: 104px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 0; background: #ff6d62; clip-path: polygon(50% 0,61% 27%,86% 11%,76% 39%,100% 50%,76% 61%,88% 88%,61% 74%,50% 100%,39% 75%,12% 88%,24% 61%,0 50%,24% 39%,11% 12%,39% 27%); }
.scene-glass-orbit { background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(206,229,255,.54), rgba(244,208,255,.58)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), inset 0 -4px 0 var(--card-color, rgba(109,74,255,.22)); }
.scene-glass-orbit .emoji-card__rays { border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.2); -webkit-mask: none; mask: none; box-shadow: 0 0 22px rgba(109,74,255,.18); }
.scene-lightning-split { background: linear-gradient(110deg, #201837 0 48%, #ffe571 49% 52%, #7648c9 53% 100%); }
.scene-lightning-split::before { width: 34px; height: 105px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 0; background: #fff36d; clip-path: polygon(48% 0,100% 0,65% 38%,96% 38%,26% 100%,43% 55%,4% 55%); }
.scene-star-crown { background: linear-gradient(145deg, #fff7ce, #ffd5a6 45%, #f2c4ff); }
.scene-star-crown .emoji-card__companion--one { top: 6%; left: 29%; font-size: 1.35rem; }
.scene-star-crown .emoji-card__companion--two { top: 6%; right: 27%; bottom: auto; font-size: 1.35rem; }
.scene-question-cloud { background: radial-gradient(circle at 28% 26%, #fff 0 12%, transparent 13%), radial-gradient(circle at 69% 23%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #d9efff, #efe1ff); }
.scene-question-cloud .emoji-card__rays { width: 150px; height: 75px; border-radius: 50%; background: rgba(255,255,255,.62); -webkit-mask: none; mask: none; filter: blur(2px); }
.scene-idea-burst { background: radial-gradient(circle at 50% 45%, #fffbd2 0 22%, #ffd85a 23% 38%, #7a5be8 39% 100%); }
.scene-idea-burst .emoji-card__rays { opacity: .9; background: repeating-conic-gradient(#fff9a8 0 7deg, transparent 7deg 18deg); }
.scene-rocket-rise { background: linear-gradient(180deg, #18234d, #4969bd 58%, #dbe7ff); }
.scene-rocket-rise::after { width: 100%; height: 28px; right: 0; bottom: 0; border-radius: 50% 50% 0 0; background: rgba(255,255,255,.62); }
.scene-vortex { background: repeating-radial-gradient(circle at 50% 50%, #ebddff 0 12px, #9f7be3 13px 22px, #462778 23px 31px); }
.scene-vortex .emoji-card__main { filter: drop-shadow(0 7px 9px rgba(0,0,0,.25)); }
.scene-shockwave { background: radial-gradient(circle at 50% 50%, #fff 0 25%, #d7c7ff 26% 34%, transparent 35% 43%, #8f6ae0 44% 48%, #241b46 49% 100%); }
.scene-shockwave .emoji-card__rays { width: 155px; height: 155px; border: 2px solid rgba(255,255,255,.7); background: transparent; -webkit-mask: none; mask: none; }
.scene-rainbow-explosion { background: conic-gradient(from 45deg, #ff7777, #ffd65a, #65e0a1, #69b6ff, #b689ff, #ff77c6, #ff7777); }
.scene-rainbow-explosion::before { width: 112px; height: 112px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.64); }
.directory-card .emoji-card__companion,
.directory-card .emoji-card__scene-badge,
.directory-card .emoji-card__rays { display: none; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card {
  padding: 1.35rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.info-card__icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: .9rem; border-radius: 1rem; background: var(--color-soft); font-size: 1.7rem; }
.info-card p:last-child { margin-bottom: 0; }
.copy-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; }
.copy-box code { overflow-wrap: anywhere; color: var(--color-primary-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.codes-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.feature-copy-panel { display: grid; place-items: center; min-height: 100%; padding: 2rem; border-radius: 1.4rem; color: #fff; text-align: center; background: linear-gradient(145deg, var(--color-primary), #9c55ff); }
.feature-copy-panel__emoji { font-size: 7rem; line-height: 1; }
.mini-library { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .65rem; }
.mini-emoji { display: grid; min-height: 86px; place-items: center; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; font-size: 2.2rem; transition: transform var(--transition); }
.mini-emoji:hover { transform: translateY(-3px) rotate(2deg); }
.category-card { position: relative; overflow: hidden; }
.category-card__samples { display: flex; gap: .35rem; margin: .8rem 0; font-size: 2rem; }
.category-card__count { color: var(--color-primary-dark); font-weight: 900; }
.use-card { min-height: 100%; }
.combo-toolbar { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.combo-card { display: grid; gap: .75rem; }
.combo-card__emoji { font-size: 2.7rem; letter-spacing: .08em; }
.conversation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.chat-card { padding: 1.2rem; border: 1px solid var(--color-line); border-radius: 1.3rem; background: #fff; }
.chat-bubble { max-width: 82%; margin: .5rem 0; padding: .75rem .9rem; border-radius: 1rem 1rem 1rem .25rem; color: #354052; background: #f1f3f7; }
.chat-bubble--reply { margin-left: auto; border-radius: 1rem 1rem .25rem 1rem; color: #fff; background: var(--color-primary); }
.text-art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.text-art { min-height: 190px; display: grid; align-content: space-between; padding: 1.2rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #171923; color: #f7f7ff; }
.text-art pre { margin: 0; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.png-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.png-card { padding: 1rem; border: 1px solid var(--color-line); border-radius: 1.2rem; background: #fff; text-align: center; }
.png-card__checker { display: grid; aspect-ratio: 1; place-items: center; margin-bottom: 1rem; border-radius: 1rem; background-color: #fff; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.png-card__checker span { font-size: 5rem; filter: drop-shadow(0 9px 12px rgba(0,0,0,.14)); }
.generator { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: 1.2rem; }
.generator-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.generator-controls .field--full { grid-column: 1 / -1; }
.check-row { display: flex; flex-wrap: wrap; gap: 1rem; padding: .8rem; border: 1px solid var(--color-line); border-radius: .85rem; }
.check-row label { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; }
.generator-preview { display: grid; place-items: center; min-height: 480px; border-radius: 1.4rem; background-color: #f7f7f9; background-image: linear-gradient(45deg, #e8e8ee 25%, transparent 25%), linear-gradient(-45deg, #e8e8ee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e8e8ee 75%), linear-gradient(-45deg, transparent 75%, #e8e8ee 75%); background-size: 26px 26px; background-position: 0 0, 0 13px, 13px -13px, -13px 0; }
.generator-preview canvas { width: min(100%, 440px); height: auto; box-shadow: 0 18px 38px rgba(28,33,48,.13); }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
th { color: #364154; background: #faf9ff; font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
.related-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.related-pill { display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; font-weight: 800; }
.related-pill span { font-size: 1.65rem; }
.support-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.support-card { padding: 1rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; text-align: center; }
.support-card__emoji { font-size: 3rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card { overflow: hidden; border: 1px solid var(--color-line); border-radius: 1.25rem; background: #fff; box-shadow: var(--shadow-sm); }
.blog-cover { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #5d3fe1, #a35cff 55%, #ff7c4b); }
.blog-cover::before, .blog-cover::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); }
.blog-cover::before { width: 180px; height: 180px; left: -65px; bottom: -80px; }
.blog-cover::after { width: 120px; height: 120px; right: -32px; top: -45px; }
.blog-cover span { position: relative; z-index: 1; font-size: clamp(4rem, 9vw, 6rem); filter: drop-shadow(0 12px 14px rgba(0,0,0,.18)); }
.blog-card__body { padding: 1.2rem; }
.blog-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; color: var(--color-muted); font-size: .76rem; }
.blog-card h3 a:hover { color: var(--color-primary-dark); }
.blog-card p { font-size: .92rem; }
.blog-card__link { color: var(--color-primary-dark); font-size: .88rem; font-weight: 900; }

.faq-tools { max-width: 650px; margin: 0 auto 1.2rem; }
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border: 0; color: var(--color-ink); background: #fff; text-align: left; font-weight: 850; }
.faq-question span:last-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--color-soft); transition: transform var(--transition); }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 1.1rem 1.1rem; }
.faq-answer p { margin: 0; }

.page-hero { padding: 3.8rem 0 2.8rem; background: linear-gradient(180deg, #faf8ff, #fff); }
.page-hero__inner { max-width: 820px; }
.page-hero .breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--color-muted); font-size: .82rem; }
.breadcrumbs a { color: var(--color-primary-dark); font-weight: 750; }
.page-content { padding: 3rem 0 var(--space-8); }
.prose { width: min(100%, 820px); margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.prose h3 { margin-top: 1.7rem; }
.prose ul, .prose ol { color: var(--color-muted); }
.prose li + li { margin-top: .45rem; }
.prose .callout { margin: 1.5rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--color-primary); border-radius: .25rem 1rem 1rem .25rem; background: var(--color-soft); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
.article-sidebar { position: sticky; top: 96px; display: grid; gap: 1rem; }
.sidebar-card { padding: 1rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; }
.sidebar-card ul { margin: .7rem 0 0; padding-left: 1.1rem; color: var(--color-muted); }
.article-cover { margin: 0 0 1.5rem; }
.article-cover .blog-cover { border-radius: 1.4rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; color: var(--color-muted); font-size: .86rem; }
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-line); }

.directory-page-tools { padding: 1rem; border: 1px solid var(--color-line); border-radius: 1.3rem; background: #fff; box-shadow: var(--shadow-sm); }
.directory-view-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.directory-card .emoji-card__visual { min-height: 120px; }
.code-lines { display: grid; gap: .35rem; margin-top: .7rem; }
.code-line { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem .55rem; border-radius: .55rem; color: #536075; background: #f8f7fb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; }
.category-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.category-directory .info-card { display: grid; min-height: 230px; align-content: space-between; }
.category-directory .category-card__samples { font-size: 2.3rem; }

.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1rem; }
.contact-card { padding: 1.5rem; border: 1px solid var(--color-line); border-radius: 1.3rem; background: #fff; }
.contact-list { display: grid; gap: .7rem; margin-top: 1rem; }
.contact-list a, .contact-list .plain-email { display: flex; align-items: center; gap: .65rem; padding: .8rem; border-radius: .8rem; background: var(--color-soft); font-weight: 800; overflow-wrap: anywhere; }

.site-footer { padding: 3.6rem 0 1.2rem; color: #d5dbea; background: #121827; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__emoji { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.site-footer p { color: #9eabc0; }
.site-footer h2 { margin-bottom: .9rem; color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: #b9c3d4; font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; text-align: center; }
.footer-bottom p { margin: 0; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12,17,29,.7);
}
.modal__dialog { width: min(100%, 560px); max-height: min(760px, calc(100vh - 2rem)); overflow: auto; padding: 1.25rem; border-radius: 1.4rem; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal__close { width: 42px; height: 42px; border: 1px solid var(--color-line); border-radius: .8rem; background: #fff; font-size: 1.3rem; }
.modal__visual { display: grid; min-height: 230px; place-items: center; margin: 1rem 0; border-radius: 1rem; background: linear-gradient(145deg, #eee9ff, #fff0e5); font-size: 7rem; }
.modal__details { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.modal__detail { padding: .75rem; border-radius: .8rem; background: #f7f6fb; }
.modal__detail strong { display: block; font-size: .75rem; color: var(--color-muted); }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 600; max-width: min(360px, calc(100% - 2rem)); padding: .8rem 1rem; border-radius: .85rem; color: #fff; background: #1d2738; box-shadow: var(--shadow-md); transform: translateY(140%); opacity: 0; transition: transform var(--transition), opacity var(--transition); }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.scroll-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--color-primary); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity var(--transition), transform var(--transition); }
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.status-region { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Deterministic seed system: changing selectedSeed in config.js changes composition, not only color. */
body[data-seed="1"] .hero-bento { grid-template-columns: 1fr; }
body[data-seed="1"] .hero-intro { grid-row: auto; text-align: center; }
body[data-seed="1"] .hero-feature, body[data-seed="1"] .hero-codes, body[data-seed="1"] .hero-stats { display: none; }
body[data-seed="1"] .directory-shell { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; }
body[data-seed="1"] .toolbar { grid-template-columns: 1fr; align-content: start; }
body[data-seed="1"] .filter-row, body[data-seed="1"] .result-bar, body[data-seed="1"] .emoji-grid, body[data-seed="1"] .load-more-wrap { grid-column: 2; }
body[data-seed="1"] .filter-row { grid-row: 2; }

body[data-seed="2"] { --color-primary: #00e7ff; --color-primary-dark: #00a9bd; --color-secondary: #ff34bd; --color-soft: #171727; --color-line: #303047; }
body[data-seed="2"] .site-header, body[data-seed="2"] .hero, body[data-seed="2"] .section--soft { color: #f5f7ff; background: #0f1020; }
body[data-seed="2"] .site-header { border-color: #303047; }
body[data-seed="2"] .site-nav a, body[data-seed="2"] .hero p { color: #b6bfd5; }
body[data-seed="2"] .hero-bento { grid-template-columns: 1fr 1fr; }
body[data-seed="2"] .hero-intro { grid-row: auto; }
body[data-seed="2"] .hero-feature { grid-row: 1 / span 2; grid-column: 2; min-height: 480px; background: linear-gradient(145deg, #10152d, #25154a); }
body[data-seed="2"] .hero-codes, body[data-seed="2"] .hero-stats { grid-column: 1; }
body[data-seed="2"] .bento-panel, body[data-seed="2"] .directory-shell { border-color: #34354f; background: #171827; box-shadow: 0 0 0 1px rgba(0,231,255,.08), 0 20px 50px rgba(0,0,0,.28); }
body[data-seed="2"] .emoji-card { border-color: #35364e; background: #171827; }
body[data-seed="2"] .emoji-card h3 { color: #fff; }
body[data-seed="2"] .toolbar { grid-template-columns: 1.4fr repeat(4, .7fr); }

body[data-seed="3"] .hero { background: radial-gradient(circle at 15% 20%, #ffd7ee 0, transparent 30%), radial-gradient(circle at 85% 15%, #d6edff 0, transparent 28%), linear-gradient(135deg, #f3eaff, #edfff9); }
body[data-seed="3"] .bento-panel, body[data-seed="3"] .directory-shell, body[data-seed="3"] .emoji-card { background: rgba(255,255,255,.58); backdrop-filter: blur(18px); box-shadow: 0 18px 55px rgba(84,49,145,.12); }
body[data-seed="3"] .hero-bento { grid-template-columns: 1.2fr .8fr; }
body[data-seed="3"] .hero-intro { grid-row: 1 / span 3; }
body[data-seed="3"] .hero-feature, body[data-seed="3"] .hero-codes, body[data-seed="3"] .hero-stats { grid-column: 2; }
body[data-seed="3"] .emoji-card { border-radius: 1.75rem; }

body[data-seed="4"] .hero-bento { grid-template-columns: 1.45fr .8fr .75fr; }
body[data-seed="4"] .emoji-card:nth-child(7n + 1) { transform: rotate(-.5deg); }
body[data-seed="4"] .emoji-card:nth-child(9n + 2) { transform: rotate(.5deg); }
body[data-seed="4"] .section:nth-of-type(even) { background-image: linear-gradient(180deg, rgba(246,245,255,.3), rgba(255,255,255,0)); }

body[data-seed="5"] { --radius-md: .2rem; --radius-lg: .3rem; --radius-xl: .4rem; --shadow-sm: none; --shadow-md: none; }
body[data-seed="5"] .site-header__inner { grid-template-columns: auto auto 1fr; }
body[data-seed="5"] .site-nav { justify-self: start; order: 3; }
body[data-seed="5"] .header-actions { justify-self: end; }
body[data-seed="5"] .hero-bento { display: grid; grid-template-columns: 1fr 320px; }
body[data-seed="5"] .hero-intro { grid-row: 1 / span 3; }
body[data-seed="5"] .hero-feature, body[data-seed="5"] .hero-codes, body[data-seed="5"] .hero-stats { grid-column: 2; }
body[data-seed="5"] .directory-shell, body[data-seed="5"] .emoji-card, body[data-seed="5"] .blog-card { border-left: 0; border-right: 0; }
body[data-seed="5"] .emoji-card__visual { border-radius: 0; }

body[data-seed="6"] { --color-primary: #111; --color-primary-dark: #111; --color-secondary: #111; --color-soft: #f4f4f4; --color-line: #cfcfcf; --radius-md: 0; --radius-lg: 0; --radius-xl: 0; --shadow-sm: none; --shadow-md: none; }
body[data-seed="6"] .site-header__inner { min-height: 58px; }
body[data-seed="6"] .brand__emoji, body[data-seed="6"] .emoji-card, body[data-seed="6"] .emoji-card__visual, body[data-seed="6"] .btn, body[data-seed="6"] .input, body[data-seed="6"] .select { border-radius: 0; }
body[data-seed="6"] .hero-bento { grid-template-columns: 1fr 1fr; }
body[data-seed="6"] .hero-intro { grid-row: auto; }
body[data-seed="6"] .hero-feature { grid-column: 2; grid-row: 1 / span 2; }
body[data-seed="6"] .hero-codes, body[data-seed="6"] .hero-stats { grid-column: 1; }
body[data-seed="6"] .emoji-card__visual { background: #f7f7f7; }

body[data-seed="7"] { --color-primary: #9b5de5; --color-secondary: #f15bb5; --color-accent: #00bbf9; --color-soft: #fff2fa; --radius-md: 1.6rem; --radius-lg: 2.2rem; --radius-xl: 2.7rem; }
body[data-seed="7"] .hero-bento { grid-template-columns: 1fr 1fr; }
body[data-seed="7"] .hero-intro { grid-row: 1 / span 2; }
body[data-seed="7"] .hero-feature, body[data-seed="7"] .hero-codes, body[data-seed="7"] .hero-stats { border-radius: 4rem; }
body[data-seed="7"] .hero-stats { grid-column: 1 / -1; }
body[data-seed="7"] .emoji-card { border-radius: 2rem; }
body[data-seed="7"] .emoji-card__visual { border-radius: 999px; }

body[data-seed="8"] { --color-primary: #00ff9d; --color-primary-dark: #00b66f; --color-secondary: #ff4d8b; --color-soft: #0f151d; --color-line: #253442; --radius-md: .25rem; --radius-lg: .25rem; --radius-xl: .25rem; }
body[data-seed="8"] .hero { color: #e6fff6; background-color: #091018; background-image: linear-gradient(rgba(0,255,157,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,157,.05) 1px, transparent 1px); background-size: 28px 28px; }
body[data-seed="8"] .hero p { color: #9bb9ad; }
body[data-seed="8"] .hero-bento { grid-template-columns: 1.3fr .7fr; }
body[data-seed="8"] .hero-intro { grid-row: 1 / span 3; background: #0e1720; }
body[data-seed="8"] .hero-feature, body[data-seed="8"] .hero-codes, body[data-seed="8"] .hero-stats { grid-column: 2; background: #0e1720; }
body[data-seed="8"] .directory-shell { background: #0c141c; border-color: #253442; }
body[data-seed="8"] .emoji-card { border-radius: 0; border-color: #294050; background: #101b24; }
body[data-seed="8"] .emoji-card h3 { color: #ecfff8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
body[data-seed="8"] .btn { border-radius: 0; }

body[data-seed="9"] .hero-bento { grid-template-columns: 1fr .7fr .7fr; transform: rotate(-.2deg); }
body[data-seed="9"] .hero-intro { grid-row: 1 / span 2; }
body[data-seed="9"] .hero-feature { transform: rotate(2deg); }
body[data-seed="9"] .hero-codes { transform: rotate(-1deg); }
body[data-seed="9"] .hero-stats { transform: rotate(1deg); }
body[data-seed="9"] .emoji-card { border: 3px solid #fff; box-shadow: 0 8px 0 rgba(30,34,48,.08), var(--shadow-sm); }
body[data-seed="9"] .emoji-card:nth-child(odd) { transform: rotate(-1deg); }
body[data-seed="9"] .emoji-card:nth-child(even) { transform: rotate(1deg); }
body[data-seed="9"] .badge { border: 2px solid currentColor; }

body[data-seed="10"] .hero { padding-top: 0; color: #fff; background: linear-gradient(125deg, #5b37da, #953cd4 48%, #ff6f46); }
body[data-seed="10"] .hero p, body[data-seed="10"] .eyebrow { color: #f4eefe; }
body[data-seed="10"] .hero-bento { padding-top: 3rem; grid-template-columns: 1.3fr .7fr; }
body[data-seed="10"] .hero-intro { grid-row: 1 / span 2; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.1); backdrop-filter: blur(14px); }
body[data-seed="10"] .hero-feature { grid-column: 2; grid-row: 1 / span 2; background: rgba(255,255,255,.16); }
body[data-seed="10"] .hero-codes, body[data-seed="10"] .hero-stats { display: none; }
body[data-seed="10"] .directory-shell { color: var(--color-ink); }
body[data-seed="10"] .section:nth-of-type(even) { background: linear-gradient(135deg, #faf7ff, #fff7f2); }

body[data-seed="11"] .site-header__inner { min-height: 58px; }
body[data-seed="11"] .brand__emoji { width: 36px; height: 36px; border-radius: .6rem; }
body[data-seed="11"] .hero { padding-top: 1rem; }
body[data-seed="11"] .hero-bento { grid-template-columns: 1fr 240px; }
body[data-seed="11"] .hero-intro { grid-row: 1 / span 3; padding: 1.5rem; }
body[data-seed="11"] .hero-feature, body[data-seed="11"] .hero-codes, body[data-seed="11"] .hero-stats { grid-column: 2; min-height: auto; }
body[data-seed="11"] .directory-shell { display: grid; grid-template-columns: 190px 1fr; gap: .8rem; padding: .7rem; }
body[data-seed="11"] .toolbar { grid-template-columns: 1fr; }
body[data-seed="11"] .filter-row, body[data-seed="11"] .result-bar, body[data-seed="11"] .emoji-grid, body[data-seed="11"] .load-more-wrap { grid-column: 2; }
body[data-seed="11"] .emoji-grid { grid-template-columns: repeat(5, 1fr); }
body[data-seed="11"] .emoji-card { padding: .55rem; border-radius: .7rem; }
body[data-seed="11"] .emoji-card__visual { min-height: 95px; }
body[data-seed="11"] .emoji-card__actions .btn { font-size: 0; }
body[data-seed="11"] .emoji-card__actions .btn::first-letter { font-size: .8rem; }

body[data-seed="12"] .hero-bento { display: grid; grid-template-columns: 1fr 1fr; }
body[data-seed="12"] .hero-intro { grid-column: 1; grid-row: 1 / span 3; }
body[data-seed="12"] .hero-feature { grid-column: 2; grid-row: 1 / span 3; min-height: 470px; border-radius: 50% 50% 38% 62% / 45% 48% 52% 55%; }
body[data-seed="12"] .hero-feature::before, body[data-seed="12"] .hero-feature::after { position: absolute; font-size: 3rem; }
body[data-seed="12"] .hero-feature::before { content: '✨'; left: 12%; top: 14%; }
body[data-seed="12"] .hero-feature::after { content: '💥'; right: 10%; bottom: 18%; }
body[data-seed="12"] .hero-codes, body[data-seed="12"] .hero-stats { display: none; }
body[data-seed="12"] .directory-shell { border-radius: 4rem 4rem 1.5rem 1.5rem; }
body[data-seed="12"] .emoji-card { border-radius: 50% 50% 1.2rem 1.2rem; }

@media (max-width: 1100px) {
  .site-nav a { padding-inline: .45rem; font-size: .8rem; }
  .header-actions .btn:first-child { display: none; }
  .emoji-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1.3fr repeat(2, .8fr); }
  .toolbar .field:nth-child(4), .toolbar > .btn { grid-column: auto; }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mini-library { grid-template-columns: repeat(6, 1fr); }
  .support-grid { grid-template-columns: repeat(3, 1fr); }
  .png-gallery { grid-template-columns: repeat(2, 1fr); }
  body[data-seed="1"] .directory-shell, body[data-seed="11"] .directory-shell { display: block; }
  body[data-seed="1"] .filter-row, body[data-seed="1"] .result-bar, body[data-seed="1"] .emoji-grid, body[data-seed="1"] .load-more-wrap,
  body[data-seed="11"] .filter-row, body[data-seed="11"] .result-bar, body[data-seed="11"] .emoji-grid, body[data-seed="11"] .load-more-wrap { grid-column: auto; }
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto auto; min-height: 68px; }
  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    max-height: calc(100vh - 68px);
    overflow: auto;
    padding: 1rem;
    border-bottom: 1px solid var(--color-line);
    background: #fff;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav__list { display: grid; gap: .25rem; }
  .site-nav a { padding: .8rem; font-size: .92rem; }
  .mobile-toggle { display: block; }
  .mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-bento, body[data-seed] .hero-bento { grid-template-columns: 1.25fr .75fr; grid-template-rows: auto; }
  .hero-intro, body[data-seed] .hero-intro { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .hero-feature, body[data-seed] .hero-feature { grid-column: 1; grid-row: auto; min-height: 230px; border-radius: var(--radius-lg); transform: none; }
  .hero-codes, body[data-seed] .hero-codes { display: block; grid-column: 2; grid-row: auto; transform: none; }
  .hero-stats, body[data-seed] .hero-stats { display: block; grid-column: 1 / -1; grid-row: auto; transform: none; }
  .codes-layout, .generator, .contact-panel, .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .card-grid, .blog-grid, .category-directory { grid-template-columns: repeat(2, 1fr); }
  .generator-preview { min-height: 380px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 1.25rem), var(--max-width)); }
  .section { padding: 3.5rem 0; }
  .section-heading { margin-bottom: 2rem; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 1rem; }
  .hero-bento, body[data-seed] .hero-bento { display: grid; grid-template-columns: 1fr; gap: .7rem; }
  .hero-intro, body[data-seed] .hero-intro, .hero-feature, body[data-seed] .hero-feature, .hero-codes, body[data-seed] .hero-codes, .hero-stats, body[data-seed] .hero-stats { grid-column: 1; }
  .hero-intro { padding: 1.3rem; }
  .hero-intro h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .featured-emoji { width: 112px; font-size: 4.5rem; }
  .directory-shell { padding: .65rem; border-radius: 1.2rem; }
  .directory-header { align-items: flex-start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .field:first-child { grid-column: 1 / -1; }
  .toolbar > .btn { grid-column: 1 / -1; }
  .emoji-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .emoji-card { padding: .62rem; border-radius: .9rem; }
  .emoji-card__visual { min-height: 112px; }
  .emoji-card__actions { grid-template-columns: 1fr 1fr; }
  .emoji-card__actions .btn:last-child { grid-column: 1 / -1; }
  .card-grid, .card-grid--4, .blog-grid, .category-directory, .conversation-grid, .text-art-grid { grid-template-columns: 1fr; }
  .mini-library { grid-template-columns: repeat(4, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .generator-controls { grid-template-columns: 1fr; }
  .generator-controls .field--full { grid-column: auto; }
  .generator-preview { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: center; justify-content: center; flex-direction: column; text-align: center; }
  .modal__details { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand__text { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
  .brand__emoji { width: 40px; height: 40px; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .field:first-child { grid-column: auto; }
  .emoji-grid { grid-template-columns: 1fr; }
  .emoji-card__visual { min-height: 150px; }
  .mini-library { grid-template-columns: repeat(3, 1fr); }
  .png-gallery, .support-grid { grid-template-columns: 1fr; }
  .button-row .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; }
  .copy-box { align-items: flex-start; flex-direction: column; }
}

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

/* Premium Seed 4 hero redesign */
body[data-page="home"] .hero {
  isolation: isolate;
  padding: 2.25rem 0 4.75rem;
  background:
    radial-gradient(circle at 7% 5%, rgba(255, 184, 77, .20), transparent 25rem),
    radial-gradient(circle at 96% 1%, rgba(109, 74, 255, .20), transparent 28rem),
    linear-gradient(180deg, #fbfaff 0%, #f7f5ff 48%, #ffffff 100%);
}
body[data-page="home"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .36;
  background-image: radial-gradient(rgba(109, 74, 255, .17) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(109, 74, 255, .14);
  border-radius: 2.15rem;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 30px 80px rgba(48, 35, 104, .12);
  backdrop-filter: blur(16px);
}
.hero-copy-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.4rem);
  border-radius: 1.55rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(135deg, #17132f 0%, #36206b 55%, #6d4aff 100%);
}
.hero-copy-card::before,
.hero-copy-card::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy-card::before { width: 260px; height: 260px; right: -90px; top: -100px; }
.hero-copy-card::after { width: 180px; height: 180px; right: 30px; bottom: -125px; }
.hero-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .43rem .72rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #eeeaff;
  background: rgba(255,255,255,.08);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-copy-card h1 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.75rem, 5.8vw, 5.35rem);
  letter-spacing: -.065em;
  line-height: .98;
}
.hero-copy-card h1 span {
  display: block;
  margin-top: .28rem;
  color: #cfc4ff;
  font-size: .54em;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-bottom: 1.65rem;
  color: #d8d4e8;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .68rem;
}
.hero-actions .btn { min-height: 49px; border-radius: .9rem; }
.hero-actions .btn--primary {
  color: #2a174c;
  background: linear-gradient(135deg, #fff1b8, #ffc969);
  box-shadow: 0 12px 30px rgba(255, 190, 75, .22);
}
.hero-actions .btn--secondary { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.18); box-shadow: none; }
.hero-actions .btn--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.24); }
.hero-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 1.55rem;
  color: #c7c2d8;
  font-size: .78rem;
  font-weight: 700;
}
.hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-trust span::before { content: '✓'; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #271747; background: #ffdc8b; font-size: .68rem; }
.hero-trust strong { color: #fff; }
.hero-showcase {
  display: grid;
  grid-template-rows: minmax(315px, 1fr) auto;
  gap: 1rem;
}
.hero-emoji-card,
.hero-code-card {
  border: 1px solid rgba(109, 74, 255, .12);
  border-radius: 1.55rem;
  background: #fff;
  box-shadow: 0 16px 42px rgba(43, 31, 94, .08);
}
.hero-emoji-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0 26%, transparent 27%),
    linear-gradient(145deg, #fff7dd 0%, #f5eaff 55%, #eafdf8 100%);
}
.hero-emoji-card::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  left: 50%;
  top: 42%;
  border: 1px dashed rgba(109,74,255,.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-card-topline,
.hero-emoji-copy { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.hero-status { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .62rem; border-radius: 999px; color: #5033d8; background: rgba(255,255,255,.82); font-size: .72rem; font-weight: 800; }
.hero-status i,
.hero-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #17b890; box-shadow: 0 0 0 4px rgba(23,184,144,.13); }
.hero-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(109,74,255,.12);
  border-radius: .75rem;
  color: #5033d8;
  background: rgba(255,255,255,.76);
  font-weight: 900;
}
.hero-emoji-stage { position: relative; z-index: 1; display: grid; min-height: 220px; place-items: center; }
.hero-emoji-stage .featured-emoji {
  width: 168px;
  border-radius: 2.4rem;
  background: rgba(255,255,255,.78);
  box-shadow: 0 28px 65px rgba(73, 48, 137, .18), inset 0 0 0 1px rgba(255,255,255,.92);
  font-size: 6.5rem;
  transform: rotate(2deg);
}
.hero-orbit { position: absolute; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(109,74,255,.12); border-radius: 1rem; background: rgba(255,255,255,.8); box-shadow: 0 10px 24px rgba(65,43,119,.09); font-size: 1.55rem; }
.hero-orbit--one { left: 8%; top: 18%; transform: rotate(-9deg); }
.hero-orbit--two { right: 7%; top: 28%; transform: rotate(8deg); }
.hero-orbit--three { right: 14%; bottom: 3%; transform: rotate(-5deg); }
.hero-emoji-copy { padding: .85rem .95rem; border: 1px solid rgba(109,74,255,.11); border-radius: 1rem; background: rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.hero-emoji-copy div { display: grid; }
.hero-emoji-copy strong { font-size: .92rem; }
.hero-emoji-copy span { color: var(--color-muted); font-size: .72rem; }
.hero-unicode { padding: .38rem .52rem; border-radius: .55rem; color: #5033d8 !important; background: #eeebff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; }
.hero-code-card { padding: 1.1rem; }
.hero-mini-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.hero-mini-heading span { color: var(--color-primary-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-mini-heading h2 { margin: .12rem 0 0; font-size: 1.08rem; }
.hero-mini-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: .75rem; color: var(--color-primary-dark); background: #f0edff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.hero-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.hero-code-button { min-width: 0; padding: .65rem .7rem; border: 1px solid var(--color-line); border-radius: .72rem; text-align: left; background: #fcfbff; transition: border-color var(--transition), transform var(--transition), background var(--transition); }
.hero-code-button:hover { border-color: #bdb1f5; background: #f7f4ff; transform: translateY(-1px); }
.hero-code-button span { display: block; color: var(--color-muted); font-size: .65rem; font-weight: 700; }
.hero-code-button strong { display: block; overflow: hidden; color: #34285e; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-explorer {
  padding: 1.25rem;
  border-color: rgba(109,74,255,.13);
  border-radius: 1.75rem;
  box-shadow: 0 24px 65px rgba(43,31,94,.10);
}
.hero-explorer-head { align-items: center; padding: .25rem .25rem 1.1rem; }
.hero-explorer-head h2 { margin: .12rem 0 .3rem; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.hero-explorer-head p:last-child { margin: 0; }
.hero-explorer-kicker { margin: 0; color: var(--color-primary-dark); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-explorer-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.hero-explorer-badges span { padding: .42rem .65rem; border: 1px solid var(--color-line); border-radius: 999px; color: #4e426f; background: #faf9ff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.hero-toolbar {
  grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(135px, .65fr)) auto;
  align-items: end;
  padding: .85rem;
  border: 1px solid #ece8f7;
  border-radius: 1.15rem;
  background: #faf9fe;
}
.hero-toolbar .field label { padding-left: .15rem; }
.hero-toolbar .input,
.hero-toolbar .select { min-height: 47px; border-color: #e5e0f1; background: #fff; }
.hero-input-wrap { position: relative; }
.hero-input-wrap > span { position: absolute; left: .82rem; top: 50%; z-index: 1; color: #756b91; font-size: 1.2rem; transform: translateY(-50%); pointer-events: none; }
.hero-input-wrap .input { padding-left: 2.3rem; }
.hero-reset { min-height: 47px; }
.hero-result-bar { padding: .35rem .25rem .9rem; }
.hero-result-bar p { font-weight: 700; }
.hero-live-dot { display: inline-flex; align-items: center; gap: .48rem; color: #4e5a6b; font-size: .72rem; font-weight: 800; }
.hero-load-more { min-width: 210px; border-radius: 999px; }

@media (max-width: 1020px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-copy-card { min-height: auto; }
  .hero-showcase { grid-template-columns: 1.15fr .85fr; grid-template-rows: auto; }
  .hero-code-card { align-self: stretch; }
  .hero-toolbar { grid-template-columns: 1.2fr repeat(2, .8fr); }
  .hero-toolbar .field:nth-child(4), .hero-toolbar .hero-reset { grid-column: auto; }
}
@media (max-width: 760px) {
  body[data-page="home"] .hero { padding-top: .75rem; }
  .hero-stage { padding: .65rem; border-radius: 1.45rem; }
  .hero-copy-card { padding: 2rem 1.35rem; border-radius: 1.1rem; }
  .hero-copy-card h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-copy-card h1 span { font-size: .5em; }
  .hero-actions .btn { flex: 1 1 180px; }
  .hero-showcase { grid-template-columns: 1fr; }
  .hero-emoji-card, .hero-code-card { border-radius: 1.1rem; }
  .hero-emoji-stage .featured-emoji { width: 145px; font-size: 5.6rem; }
  .hero-explorer { padding: .75rem; border-radius: 1.3rem; }
  .hero-explorer-head { align-items: flex-start; }
  .hero-explorer-badges { justify-content: flex-start; }
  .hero-toolbar { grid-template-columns: 1fr 1fr; padding: .65rem; }
  .hero-search-field { grid-column: 1 / -1; }
  .hero-toolbar .hero-reset { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .hero-copy-card h1 { font-size: clamp(2.35rem, 13vw, 3.25rem); }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; gap: .55rem; }
  .hero-emoji-stage { min-height: 205px; }
  .hero-emoji-stage .featured-emoji { width: 126px; border-radius: 1.8rem; font-size: 4.9rem; }
  .hero-orbit { width: 40px; height: 40px; font-size: 1.25rem; }
  .hero-code-grid { grid-template-columns: 1fr; }
  .hero-toolbar { grid-template-columns: 1fr; }
  .hero-search-field { grid-column: auto; }
  .hero-explorer-badges span:last-child { display: none; }
}

/* Homepage section order refresh: centered hero, generator, then 600-style explorer */
body[data-page="home"] .style-hero {
  position: relative;
  padding: 1rem 0 4.5rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 190, 74, .2), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(109, 74, 255, .22), transparent 28rem),
    linear-gradient(180deg, #faf9ff 0%, #f5f2ff 65%, #ffffff 100%);
}
body[data-page="home"] .style-hero::before {
  opacity: .32;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.style-hero__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 650px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: clamp(1.5rem, 4vw, 2.7rem);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 2%, rgba(255, 221, 139, .19), transparent 30%),
    radial-gradient(circle at 8% 100%, rgba(255, 125, 184, .16), transparent 31%),
    linear-gradient(145deg, #141027 0%, #2c1a5b 52%, #6544e5 100%);
  box-shadow: 0 32px 85px rgba(41, 27, 92, .2);
}
.style-hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 76%);
}
.style-hero__glow {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}
.style-hero__glow--one { left: -170px; top: -150px; background: rgba(255, 202, 91, .17); }
.style-hero__glow--two { right: -160px; bottom: -170px; background: rgba(98, 234, 212, .13); }
.style-hero__visual {
  position: relative;
  display: grid;
  width: clamp(160px, 20vw, 210px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.45rem;
}
.style-hero__visual::before,
.style-hero__visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.style-hero__visual::before {
  inset: 1%;
  border: 1px dashed rgba(255,255,255,.25);
  animation: hero-orbit-spin 20s linear infinite;
}
.style-hero__visual::after {
  inset: 17%;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 22px 55px rgba(10, 7, 28, .24);
  backdrop-filter: blur(10px);
}
.style-hero__emoji {
  position: relative;
  z-index: 2;
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,239,255,.88));
  box-shadow: 0 25px 55px rgba(9, 6, 25, .28), inset 0 0 0 1px rgba(255,255,255,.92);
  font-size: clamp(5rem, 10vw, 7.4rem);
  line-height: 1;
  transform: rotate(2deg);
}
.style-hero__mini {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: .9rem;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(8, 5, 22, .18);
  backdrop-filter: blur(9px);
  font-size: 1.3rem;
}
.style-hero__mini--one { left: -4%; top: 20%; transform: rotate(-9deg); }
.style-hero__mini--two { right: -3%; top: 31%; transform: rotate(9deg); }
.style-hero__mini--three { right: 13%; bottom: -2%; transform: rotate(-5deg); }
.style-hero__content { position: relative; z-index: 2; width: min(100%, 930px); }
.style-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .75rem;
  padding: .44rem .78rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: #f2edff;
  background: rgba(255,255,255,.08);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.style-hero__eyebrow::before { content: '✦'; color: #ffd678; }
.style-hero__content h1 {
  max-width: 900px;
  margin: 0 auto .85rem;
  color: #fff;
  font-size: clamp(2.55rem, 6.2vw, 5.2rem);
  letter-spacing: -.058em;
  line-height: 1.01;
}
.style-hero__lead {
  max-width: 700px;
  margin: 0 auto 1.6rem;
  color: #d8d2e9;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}
.style-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
}
.style-hero__actions .btn { min-height: 50px; border-radius: .95rem; }
.style-hero__actions .btn--primary {
  color: #2b194e;
  background: linear-gradient(135deg, #fff0b5, #ffc75f);
  box-shadow: 0 14px 34px rgba(255, 193, 72, .22);
}
.style-hero__actions .btn--secondary {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.12);
  box-shadow: none;
}
.style-hero__actions .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: transparent;
}
.style-hero__codes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  max-width: 870px;
  margin: 1.55rem auto 0;
}
.style-hero__codes button {
  min-width: 0;
  padding: .72rem .78rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: .82rem;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.style-hero__codes button:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.13); transform: translateY(-2px); }
.style-hero__codes span { display: block; margin-bottom: .15rem; color: #bdb5d4; font-size: .65rem; font-weight: 700; }
.style-hero__codes strong { display: block; overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.style-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.45rem;
  margin-top: 1.25rem;
  color: #c5bed7;
  font-size: .76rem;
  font-weight: 700;
}
.style-hero__stats span { display: inline-flex; align-items: center; gap: .38rem; }
.style-hero__stats span::before { content: '✓'; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #2d1b4f; background: #ffda80; font-size: .65rem; }
.style-hero__stats strong { color: #fff; }

.generator-feature-section {
  position: relative;
  overflow: hidden;
  padding-top: 5.3rem;
  padding-bottom: 5.3rem;
  background:
    radial-gradient(circle at 3% 7%, rgba(109,74,255,.1), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}
.generator-feature-section .section-heading { text-align: center; }
.generator-feature-section .section-heading > p:last-child { margin-right: auto; margin-left: auto; }
.generator-feature-section .generator {
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(109,74,255,.13);
  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 25px 65px rgba(43,31,94,.09);
}
.generator-feature-section .generator-controls {
  border-color: #e9e4f6;
  background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  box-shadow: none;
}
.generator-feature-section .generator-preview { border: 1px solid #ebe7f4; }

.emoji-collection-section {
  position: relative;
  padding-top: 5.2rem;
  padding-bottom: 5.5rem;
  background:
    radial-gradient(circle at 96% 4%, rgba(255,191,72,.13), transparent 25rem),
    linear-gradient(180deg, #f8f6ff 0%, #ffffff 100%);
}
.emoji-collection-section .hero-explorer {
  padding: clamp(.85rem, 2.5vw, 1.5rem);
  margin: 0;
  background: rgba(255,255,255,.92);
}
.emoji-collection-section .hero-explorer-head {
  display: block;
  max-width: 850px;
  margin: 0 auto 1.1rem;
  text-align: center;
}
.emoji-collection-section .hero-explorer-head h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.emoji-collection-section .hero-explorer-head > div:first-child > p:last-child { max-width: 720px; margin-right: auto; margin-left: auto; }
.emoji-collection-section .hero-explorer-badges { justify-content: center; margin-top: .85rem; }
.emoji-collection-section .hero-toolbar { position: sticky; top: 82px; z-index: 8; box-shadow: 0 14px 34px rgba(43,31,94,.07); }

@keyframes hero-orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .style-hero__panel { min-height: auto; }
  .style-hero__codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emoji-collection-section .hero-toolbar { position: static; }
}
@media (max-width: 700px) {
  body[data-page="home"] .style-hero { padding-top: .65rem; padding-bottom: 3.5rem; }
  .style-hero__panel { padding: 2.25rem 1rem; border-radius: 1.45rem; }
  .style-hero__visual { width: 152px; margin-bottom: 1.15rem; }
  .style-hero__emoji { border-radius: 1.55rem; font-size: 4.9rem; }
  .style-hero__content h1 { font-size: clamp(2.35rem, 12vw, 3.65rem); }
  .style-hero__actions { display: grid; grid-template-columns: 1fr; }
  .style-hero__actions .btn { width: 100%; }
  .style-hero__codes { grid-template-columns: 1fr 1fr; }
  .style-hero__stats { display: grid; justify-content: center; text-align: left; }
  .generator-feature-section, .emoji-collection-section { padding-top: 4rem; padding-bottom: 4rem; }
  .generator-feature-section .generator { padding: .65rem; border-radius: 1.3rem; }
}
@media (max-width: 420px) {
  .style-hero__codes { grid-template-columns: 1fr; }
  .style-hero__mini { width: 38px; height: 38px; font-size: 1.12rem; }
  .style-hero__lead { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) {
  .style-hero__visual::before { animation: none; }
}


/* Homepage hero correction: the interactive 600-style explorer is the hero */
body[data-page="home"] .emoji-explorer-hero {
  position: relative;
  overflow: clip;
  padding: .8rem 0 5rem;
  background:
    radial-gradient(circle at 5% 5%, rgba(109, 74, 255, .13), transparent 29rem),
    radial-gradient(circle at 96% 2%, rgba(255, 191, 72, .12), transparent 26rem),
    linear-gradient(180deg, #f7f5ff 0%, #fbfaff 55%, #ffffff 100%);
}
body[data-page="home"] .emoji-explorer-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image:
    linear-gradient(rgba(109, 74, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 74, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.emoji-explorer-hero .container { position: relative; z-index: 1; }
.emoji-explorer-hero .hero-explorer {
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(109, 74, 255, .14);
  border-radius: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(43, 31, 94, .12);
}
.emoji-explorer-hero .hero-explorer-head {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1rem, 3.2vw, 2.35rem) .5rem 1.45rem;
  text-align: center;
}
.emoji-explorer-hero .hero-explorer-kicker {
  color: #5637d7;
  font-size: .72rem;
  letter-spacing: .12em;
}
.emoji-explorer-hero .hero-explorer-head h1 {
  max-width: 780px;
  margin: .25rem auto .55rem;
  color: #10213f;
  font-size: clamp(2.25rem, 5.2vw, 4.45rem);
  letter-spacing: -.052em;
  line-height: 1.02;
}
.emoji-explorer-hero .hero-explorer-head > div:first-child > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: #526078;
  font-size: clamp(.94rem, 1.45vw, 1.05rem);
}
.emoji-explorer-hero .hero-explorer-badges {
  justify-content: center;
  margin-top: 1rem;
}
.emoji-explorer-hero .hero-explorer-badges span {
  border-color: #e4def7;
  color: #3f2b83;
  background: linear-gradient(180deg, #ffffff, #f6f3ff);
  box-shadow: 0 5px 14px rgba(69, 45, 140, .05);
}
.emoji-explorer-hero .hero-toolbar {
  position: sticky;
  top: 82px;
  z-index: 8;
  margin-top: .25rem;
  border-color: #e8e3f5;
  background: rgba(250, 249, 254, .95);
  box-shadow: 0 15px 35px rgba(43, 31, 94, .075);
  backdrop-filter: blur(14px);
}
.emoji-explorer-hero .hero-result-bar { padding-top: .85rem; }
.emoji-explorer-hero .emoji-grid { margin-top: .15rem; }
.emoji-explorer-hero .load-more-wrap { padding-bottom: .2rem; }

/* Generator follows the hero directly */
body[data-page="home"] .generator-feature-section {
  padding-top: 5rem;
}

@media (max-width: 900px) {
  .emoji-explorer-hero .hero-toolbar { position: static; }
}
@media (max-width: 700px) {
  body[data-page="home"] .emoji-explorer-hero { padding-top: .55rem; padding-bottom: 4rem; }
  .emoji-explorer-hero .hero-explorer { padding: .7rem; border-radius: 1.25rem; }
  .emoji-explorer-hero .hero-explorer-head { padding: 1.4rem .45rem 1.1rem; }
  .emoji-explorer-hero .hero-explorer-head h1 { font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .emoji-explorer-hero .hero-toolbar { margin-top: 0; }
}
@media (max-width: 480px) {
  .emoji-explorer-hero .hero-explorer-badges { gap: .35rem; }
  .emoji-explorer-hero .hero-explorer-badges span { padding: .38rem .52rem; font-size: .66rem; }
  .emoji-explorer-hero .hero-result-bar { align-items: flex-start; gap: .7rem; }
}
