:root {
  /* Exact Kaomoji.club Pink Palette */
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --bg: #fdf2f8;
  --bg-soft: #fce7f3;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #1f2937;
  --text-secondary: #374151;
  --muted: #4b5563;
  --primary: #ec4899;
  --primary-dark: #db2777;
  --border: #e5e7eb;
  --border-pink: rgba(249, 168, 212, 0.45);
  --radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(236, 72, 153, 0.08), 0 2px 4px -1px rgba(236, 72, 153, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(236, 72, 153, 0.14), 0 4px 6px -2px rgba(236, 72, 153, 0.06);
  --grad-bg: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
  --grad-btn: linear-gradient(90deg, #f472b6 0%, #ec4899 100%);
  --grad-btn-hover: linear-gradient(90deg, #ec4899 0%, #db2777 100%);
  --grad-text: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--pink-600);
  text-decoration: none;
}

a:hover {
  color: var(--pink-700);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pink-500);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header: 3-column layout matching live kaomoji.club */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 207, 232, 0.45);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--pink-500);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: var(--pink-50);
  color: var(--pink-700);
  border: 1px solid var(--pink-200);
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
  cursor: pointer;
}

.header-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--pink-50);
  color: var(--pink-600);
}

.site-nav a.active {
  color: var(--pink-600);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--pink-200);
  color: var(--pink-700);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: var(--pink-400);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18);
}

.lang-chevron {
  color: var(--pink-500);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(251, 207, 232, 0.7);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 35px -10px rgba(236, 72, 153, 0.16), 0 8px 16px -6px rgba(0, 0, 0, 0.08);
  z-index: 60;
}

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

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.lang-option.active {
  background: var(--pink-50);
  color: var(--pink-700);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--pink-100);
}

.lang-option-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pink-500);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.site-main {
  flex: 1;
  padding: 32px 0 64px;
}

.hero-block {
  text-align: center;
  margin-bottom: 24px;
}

.page-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  margin: 0 auto;
  max-width: 70ch;
  font-size: 15px;
  color: var(--muted);
}

/* Glass morphism pill panel */
.pill-panel {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 207, 232, 0.65);
  background: rgba(255, 255, 255, 0.72);
  color: var(--pink-700);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-link:hover {
  background: rgba(253, 242, 248, 0.95);
  border-color: var(--pink-300);
  color: var(--pink-700);
  transform: scale(1.04);
  box-shadow: var(--shadow-sm);
}

.pill-link.active {
  background: var(--grad-btn);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.collection-section {
  margin-bottom: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--pink-700);
  border-left: 4px solid var(--pink-500);
  padding: 4px 0 4px 14px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  background: var(--pink-50);
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.item-grid {
  display: grid;
  gap: 12px;
}

.item-grid-kaomoji {
  grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
}

.item-grid-emoji {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.item-grid-symbol {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.item-grid-ascii {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Exact KaomojiCard style: pure white card + gray-200 border + pink-300 hover */
.copy-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  word-break: break-word;
  text-align: center;
}

.copy-card:hover {
  transform: scale(1.04);
  border-color: var(--pink-300);
  box-shadow: 0 10px 15px -3px rgba(251, 207, 232, 0.75), 0 4px 6px -2px rgba(236, 72, 153, 0.12);
  color: var(--pink-700);
}

.copy-card:active {
  transform: scale(0.96);
}

.copy-card-emoji .card-text {
  font-size: 28px;
  line-height: 1.2;
}

.copy-card-symbol .card-text {
  font-size: 22px;
  line-height: 1.2;
}

.copy-card-ascii {
  justify-content: flex-start;
  text-align: left;
  overflow-x: auto;
}

.ascii-art {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.3;
  white-space: pre;
}

.section-more {
  margin-top: 16px;
  text-align: center;
}

/* Exact View More gradient button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--grad-btn);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--grad-btn-hover);
  color: #ffffff;
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.tools-hub {
  margin-bottom: 48px;
}

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

.hub-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hub-card-icon {
  font-size: 36px;
  line-height: 1;
}

.hub-card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--pink-700);
}

.hub-card-desc {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.tool-stage {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.related-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.related-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
  text-align: center;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.prose-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 24px 0 12px;
  color: var(--pink-700);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  max-width: 70ch;
  color: var(--text);
}

.faq-section {
  margin-bottom: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.faq-a {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Footer: soft glass pink style matching Footer.tsx */
.site-footer {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-pink);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  color: var(--pink-600);
}

.footer-links a:hover {
  color: var(--pink-800);
}

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 207, 232, 0.55);
  background: rgba(255, 255, 255, 0.7);
  color: var(--pink-600);
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.lang-pill:hover {
  background: var(--pink-50);
  border-color: var(--pink-300);
  transform: scale(1.04);
}

.lang-pill.active {
  background: var(--pink-100);
  border-color: var(--pink-300);
  color: var(--pink-700);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--pink-600);
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pink-300);
  color: var(--pink-700);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.not-found-box {
  text-align: center;
  padding: 48px 16px;
}

.not-found-face {
  font-size: 48px;
  margin: 0 0 16px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .page-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-drawer {
    display: none;
    width: 100%;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(251, 207, 232, 0.45);
  }

  .header-drawer.open {
    display: flex;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-bottom: 4px;
  }

  .lang-dropdown {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(251, 207, 232, 0.45);
  }

  .lang-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    box-shadow: var(--shadow-sm);
  }

  .header-inner {
    flex-wrap: wrap;
  }

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

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

  .item-grid-symbol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .item-grid-ascii,
  .tool-card-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary {
    width: 100%;
  }

  .prose-card {
    padding: 20px;
  }
}