@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(10, 20, 36, 0.9);
  --panel-strong: #101d32;
  --text: #f5f8ff;
  --muted: #93a4bf;
  --accent: #7c8cff;
  --accent-strong: #4d73ff;
  --emoji-color: #ffcc18;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 140, 255, 0.16), transparent 24%),
    linear-gradient(135deg, var(--bg), #0f1d33 70%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  background: rgba(7, 17, 31, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  padding: 8px 2px 11px;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 6px;
}

.brand-active {
  color: var(--text);
}

.brand::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.brand-active::after {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.main-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.site-footer a:hover,
.seo-card-grid a:hover {
  color: var(--text);
}

.main-nav a {
  position: relative;
  padding: 8px 2px 11px;
  border-radius: 6px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.main-nav a:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.75);
  outline-offset: 4px;
}

.main-nav .nav-link-active {
  color: var(--text);
}

.main-nav .nav-link-active::after {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.sticky-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #cbd6ff;
}

.hero {
  padding: 44px 0 24px;
}

.hero__content {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: #8ea5ef;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero__text {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 12px 0 0;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-box {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #7687a3;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

.display-controls {
  display: grid;
  grid-template-columns: minmax(280px, max-content) minmax(310px, max-content) minmax(210px, max-content);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.field-control,
.segmented-control,
.color-palette {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.color-palette span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.color-swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(7, 17, 31, 0.24);
}

.color-swatch:hover {
  transform: scale(1.04);
}

.color-swatch.active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.45);
}

.field-control span,
.segmented-control span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.segmented-control {
  margin: 0;
}

select {
  min-width: 126px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.segment {
  min-width: 76px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.segment.active {
  color: var(--text);
  background: rgba(124, 140, 255, 0.24);
  border-color: rgba(124, 140, 255, 0.4);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.94rem;
}

.chip.active {
  background: rgba(124, 140, 255, 0.2);
  color: white;
  border-color: rgba(124, 140, 255, 0.45);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.stats > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats strong {
  font-size: 1.1rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.94rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.toolbar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar__info span {
  color: var(--muted);
  font-size: 0.92rem;
}

.toolbar__actions {
  display: flex;
  gap: 10px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-emoji-tray {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 72px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.selected-emoji-tray.has-selection {
  display: flex;
}

.selected-emoji-item {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--emoji-color);
  font-size: 2rem;
  line-height: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.selected-emoji-tray.size-small .selected-emoji-item {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.selected-emoji-tray.size-large .selected-emoji-item {
  width: 68px;
  height: 68px;
  font-size: 2.8rem;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.emoji-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.emoji-card.selected {
  border-color: rgba(124, 140, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 140, 255, 0.2) inset;
}

.emoji-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.select-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.select-btn.selected {
  background: rgba(124, 140, 255, 0.24);
  border-color: rgba(124, 140, 255, 0.42);
}

.emoji-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--emoji-color);
  font-size: 2.2rem;
  line-height: 1;
}

.emoji-grid.size-small .emoji-symbol {
  width: 46px;
  height: 46px;
  font-size: 1.65rem;
}

.emoji-grid.size-large .emoji-symbol {
  width: 76px;
  height: 76px;
  font-size: 3.15rem;
}

.emoji-glyph {
  display: inline-block;
  font-size: inherit;
  line-height: 1;
}

.emoji-glyph.webfont {
  font-family: "Noto Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--emoji-color);
}

.emoji-sprite {
  width: 1em;
  height: 1em;
  display: block;
  object-fit: contain;
}

.emoji-name {
  margin: 8px 0 0;
  font-weight: 600;
  color: white;
}

.emoji-keywords {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.copy-btn {
  margin-top: 12px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.emoji-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.emoji-card__actions .copy-btn {
  margin-top: 0;
}

.detail-link {
  color: #cbd6ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.copy-btn.copied {
  background: rgba(83, 188, 106, 0.2);
  border-color: rgba(83, 188, 106, 0.3);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px;
  color: var(--muted);
  background: var(--panel);
  border-radius: 18px;
  border: 1px dashed var(--border);
}

.load-more-wrap {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 76px;
  margin: 14px 0 0;
}

.load-more-wrap button[hidden] {
  display: none;
}

.scroll-sentinel {
  width: 1px;
  height: 1px;
}

.content-section {
  margin-top: 26px;
  padding: 28px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.content-section h3 {
  margin: 0 0 10px;
}

.content-section p,
.content-section li {
  color: var(--muted);
  line-height: 1.7;
}

.check-list {
  margin: 0;
  padding-left: 20px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-card-grid article {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.seo-card-grid h3 {
  margin: 0 0 8px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.lead-form label:nth-child(3) {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.lead-form button {
  justify-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 70px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 6px 0 0;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.emoji-detail__glyph {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-right: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 3.4rem;
  vertical-align: middle;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.data-table th {
  width: 180px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.data-table code {
  word-break: break-word;
}

.related-emoji-list,
.emoji-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.related-emoji-list a,
.emoji-link-grid a,
.emoji-link-grid article {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-align: center;
}

.related-emoji-list a {
  min-height: 56px;
  font-size: 1.8rem;
}

.emoji-link-grid span {
  font-size: 2rem;
}

.emoji-link-grid small {
  color: var(--muted);
  font-size: 0.74rem;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .site-shell {
    padding: 16px;
  }

  .hero__content {
    padding: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .display-controls {
    grid-template-columns: 1fr;
  }

  .field-control,
  .segmented-control,
  .color-palette {
    width: 100%;
    border-radius: 18px;
  }

  .color-palette {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .segmented-control {
    flex-wrap: wrap;
  }

  .segment {
    flex: 1 1 72px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar__actions {
    width: 100%;
  }

  .toolbar__actions button {
    flex: 1;
  }

  .two-column,
  .seo-card-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

.site-footer {
  flex-direction: column;
}
}

@media (min-width: 721px) and (max-width: 1040px) {
  .display-controls {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 22px 24px 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  gap: 12px;
}

.site-footer small {
  line-height: 1.6;
}

.ad-slot-reserve {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin: 18px 0;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 18, 32, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-banner__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.cookie-banner[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .site-footer__inner,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions > * {
    flex: 1;
  }
}
