:root {
  color-scheme: light;
  --neutral-foreground-1: #242424;
  --neutral-foreground-2: #424242;
  --neutral-foreground-3: #616161;
  --neutral-stroke-1: #d1d1d1;
  --neutral-stroke-2: #e0e0e0;
  --neutral-background-1: #ffffff;
  --neutral-background-2: #fafafa;
  --neutral-background-3: #f5f5f5;
  --brand-primary: #0f6cbd;
  --brand-primary-hover: #115ea3;
  --accent-teal: #49c5b1;
  --accent-purple: #8661c5;
  --accent-pink: #c03bc4;
  --accent-blue: #018df8;
  --shadow-4: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.14);
  --shadow-16: 0 0 2px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 16%, rgba(1, 141, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(73, 197, 177, 0.2), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 58%, #fafafa 100%);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--neutral-foreground-1);
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  background: transparent;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px clamp(18px, 4vw, 48px) clamp(24px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at 78% 26%, rgba(134, 97, 197, 0.16), transparent 22rem),
    radial-gradient(circle at 14% 82%, rgba(1, 141, 248, 0.13), transparent 20rem);
  border: 1px solid var(--neutral-stroke-2);
  border-radius: 28px;
  box-shadow: var(--shadow-16);
}

.hero::after {
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 320px;
  height: 320px;
  content: "";
  background: conic-gradient(from 90deg, var(--accent-blue), var(--accent-teal), var(--accent-purple), var(--accent-pink), var(--accent-blue));
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.2;
  pointer-events: none;
}

.top-bar,
.category-nav,
.section-header,
.emoji-grid {
  position: relative;
  z-index: 1;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-foreground-1);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, var(--brand-primary), var(--accent-teal)) top left / 10px 10px no-repeat,
    linear-gradient(135deg, var(--accent-purple), var(--accent-pink)) top right / 10px 10px no-repeat,
    linear-gradient(135deg, var(--accent-teal), var(--brand-primary)) bottom left / 10px 10px no-repeat,
    linear-gradient(135deg, var(--accent-pink), var(--accent-blue)) bottom right / 10px 10px no-repeat;
  border-radius: 6px;
  box-shadow: var(--shadow-4);
}

.nav-toggle {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 8px;
  color: var(--neutral-foreground-2);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--neutral-stroke-1);
  border-radius: 12px;
  box-shadow: var(--shadow-4);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-toggle[hidden] {
  display: none;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--brand-primary-hover);
  background: var(--neutral-background-1);
  border-color: rgba(15, 108, 189, 0.38);
  outline: none;
  transform: translateY(-1px);
}

.surface-label,
.eyebrow,
.notice-type,
.results-count {
  color: var(--neutral-foreground-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.surface-label {
  margin: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-primary);
}

h2,
h3,
p {
  margin: 0;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.variant-vert-nav .hero {
  overflow: visible;
  padding: 10px;
  border-radius: 20px;
}

.variant-vert-nav .top-bar {
  gap: 12px;
  margin-bottom: 0;
}

.variant-vert-nav .nav-toggle {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
}

.variant-vert-nav .surface-label {
  margin-top: 0;
}

.variant-vert-nav .category-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 8px;
  z-index: 20;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: min(288px, calc(100% - 16px));
  margin-top: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--neutral-stroke-2);
  border-radius: 18px;
  box-shadow: var(--shadow-16);
  animation: menu-fly-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.variant-vert-nav.nav-open .category-nav {
  display: flex;
}

.category-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--neutral-foreground-2);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--neutral-stroke-1);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.variant-vert-nav .category-button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
}

.category-button:hover,
.category-button:focus-visible {
  color: var(--brand-primary-hover);
  background: var(--neutral-background-1);
  border-color: rgba(15, 108, 189, 0.38);
  box-shadow: var(--shadow-4);
  outline: none;
  transform: translateY(-1px);
}

.category-button.is-active {
  color: #ffffff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(15, 108, 189, 0.08), 0 6px 14px rgba(15, 108, 189, 0.24);
}

.catalog-section {
  padding-top: clamp(34px, 5vw, 54px);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.results-count {
  margin-bottom: 8px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 12px;
}

.emoji-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 180px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.96)),
    var(--neutral-background-1);
  border: 1px solid var(--neutral-stroke-2);
  border-radius: 22px;
  box-shadow: var(--shadow-4);
  animation: tile-enter 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.emoji-notice[hidden] {
  display: none;
}

.notice-type {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  color: var(--brand-primary);
  background: #ebf3fc;
  border-radius: 999px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.emoji-mark {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  margin: 6px 0 10px;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  line-height: 1;
  text-align: center;
  filter: saturate(0.94);
}

.notice-copy {
  width: 100%;
  min-height: 0;
  text-align: center;
}

.notice-copy h3 {
  margin-bottom: 0;
  color: var(--neutral-foreground-1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--neutral-foreground-2);
  background: var(--neutral-background-1);
  border: 1px dashed var(--neutral-stroke-1);
  border-radius: 18px;
  font-size: 16px;
  text-align: center;
}

@keyframes tile-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-fly-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 9px;
  }

  .hero {
    border-radius: 22px;
  }

  .top-bar,
  .section-header {
    display: block;
  }

  .variant-vert-nav .top-bar {
    display: flex;
  }

  .surface-label,
  .results-count {
    margin-top: 8px;
  }

  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .emoji-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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