button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, p {
  margin-top: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero {
  margin-bottom: 28px;
  padding: 28px 24px 30px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(145, 6, 148, .2);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  color: #fff5fc;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
 margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff !important;
}

.hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #f3d1e7;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(145, 6, 148, .12);
}

.input-card {
  padding: 30px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 5px;
  color: #a11a8f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  color: #311d38;
  font-size: 26px;
  line-height: 1.2;
}

textarea,
input[type="search"] {
  color: #312033 !important;
  background: #fffafe !important;
  border: 1px solid #e7c3dc !important;
  border-radius: 16px !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

textarea:focus,
input[type="search"]:focus {
  background: #ffffff !important;
  border-color: #db43a5 !important;
  box-shadow: 0 0 0 4px rgba(219, 67, 165, .14) !important;
}

#source-text {
  display: block;
  width: 100%;
  min-height: 180px;
  margin-top: 22px;
  padding: 18px;
  resize: vertical;
  font-size: 17px;
  line-height: 1.6;
}

#source-text::placeholder {
  color: #ad9aaa;
}

#clear-button{
	color:#c36 !important;
	    border: 1px solid #e7c3dc !important;
    border-radius: 16px !important;
	background: #fffafe !important;
	
}



.input-actions {
  margin-top: 14px;
}

.search-box {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  color: #775e72;
  font-size: 12px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
}

.browser-section {
  margin-top: 42px;
}

.browser-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 44px !important;
  padding: 12px 22px !important;
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border: none;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease !important;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 10px 24px rgba(145, 6, 148, .28);
}

.button:active {
  transform: translateY(0) scale(.99);
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.tab:focus-visible,
.sub-tab:focus-visible {
  outline: 3px solid rgba(251, 14, 118, .32);
  outline-offset: 2px;
}

.button-quiet {
  min-height: 38px;
  padding: 8px 16px;
  color: #9b238a;
  background: #fff2fa;
  border: 1px solid #f0c6df;
}

.button-outline {
  color: #9b238a !important;
  background: #ffffff !important;
  border: 1px solid #d98bc2 !important;
}

.main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab,
.sub-tab {
  padding: 9px 18px !important;
  color: #9b238a !important;
  background: #ffffff !important;
  border: 1px solid #f0c6df !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.sub-tab {
  padding: 7px 14px;
  font-size: 12px;
}

.tab:hover,
.sub-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(145, 6, 148, .16);
}

.tab.active,
.sub-tab.active {
  color: #ffffff !important;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  border-color: transparent !important;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#category-title {
  margin-bottom: 0;
  color: #311d38;
  font-size: 17px;
  font-weight: 700;
}

#count-label {
  margin-bottom: 0;
  color: #846b81;
  font-size: 13px;
}

.kaomoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.kaomoji-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding: 24px 16px 16px;
  background: #ffffff;
  border: 1px solid #f3d1e7;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(145, 6, 148, .08);
  cursor: grab;
  user-select: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  animation: cardFade .35s ease both;
}

.kaomoji-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(145, 6, 148, .18);
}

.kaomoji-card:active {
  cursor: grabbing;
  transform: translateY(-1px) scale(.99);
}

.kaomoji-card.copied {
  background: #fff2fa;
  border-color: #FB0E76;
  box-shadow: 0 12px 24px rgba(145, 6, 148, .28);
}

.kaomoji {
  margin: 0;
  color: #311d38;
  font-size: 26px;
  line-height: 1;
  text-align: center;
  word-break: break-word;
}

.copied-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 3px 10px;
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.kaomoji-card.copied .copied-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kaomoji-card.copied .kaomoji {
  transform: translateY(-6px);
  transition: transform .25s ease;
}

.heart {
 padding: 15px !important;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d98bc2 !important;
    background: #fff5fb;
    border: 1px solid #f3d1e7;
    border-radius: 12px !important;
    font-size: 14px !important;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.heart:hover {
  transform: scale(1.15);
}
[type=button], [type=submit], button {
  
    text-align: center;
    white-space: nowrap;
  
    user-select: none;
    background-color: transparent !important;
  
}





.heart.active {
  color: #ffffff;
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  border-color: transparent;
  animation: heartPop .35s ease;
}

.no-results {
  padding: 36px;
  text-align: center;
  color: #846e82;
  font-size: 15px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100% - 48px);
  padding: 13px 18px;
  color: #ffffff;
  background: #311d38;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(49, 29, 56, .24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (max-width: 980px) {
  .kaomoji-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 620px);
    padding: 0px !important;
  }

  .hero {
    padding: 24px 18px;
  }

  .input-card {
    padding: 22px;
  }

  .main-tabs,
  .sub-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tab,
  .sub-tab {
    flex: 0 0 auto;
  }

  .kaomoji-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .browser-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    flex-direction: column;
  }

  .top-actions .button {
    width: 100%;
  }
}
