/* =============================================================
   TikTokFont.com — Japanese Emoticons & Kaomoji Stylesheet
   Custom Namespaced Design: ttf- (TikTokFont)
   ============================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: #f3f3f3;
  color: #4a4a4a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar {
  height: 6px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(to right, #0575e6, #021b79);
}

.ttf-tabset, .ttf-main {
  max-width: 65em;
  background: #fff;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 80vh;
}

/* Header */
header.ttf-header {
  text-align: center;
  padding: 14px 16px;
  background: linear-gradient(to right, #373e45, #2d1a1a);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

header.ttf-header a {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.5px;
}

.ttf-nav-hamburger {
  position: absolute;
  top: 6px;
  left: 6px;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

#mobile-fly-menu {
  display: block;
  position: relative;
  cursor: pointer;
  width: 30px;
  height: 24px;
}

#mobile-fly-menu span {
  display: block;
  position: absolute;
  left: 0;
  transition: .25s ease-in-out;
  height: 3px;
  border-radius: 2px;
  background: #fffffffa;
}

#mobile-fly-menu span:nth-child(1) { top: 3px; width: 28px; }
#mobile-fly-menu span:nth-child(2) { top: 10px; width: 22px; }
#mobile-fly-menu span:nth-child(3) { top: 17px; width: 16px; }

.ttf-mainlogo span {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  margin-top: 2px;
  display: block;
}

/* Side Navigation */
.ttf-sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  background-color: #0b0f19;
  overflow-x: hidden;
  transition: 0.35s ease;
  padding-top: 60px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}

.ttf-sidenav a {
  padding: 12px 16px 12px 20px;
  text-decoration: none;
  font-size: 15px;
  color: #f6f6f6;
  display: block;
  transition: 0.2s;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ttf-sidenav a:hover {
  background: #0575e6;
  color: #fff;
  padding-left: 26px;
}

.ttf-sidenav .closebtn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 32px;
  border-bottom: none;
  color: #aaa;
}

.ttf-sidenav .closebtn:hover {
  color: #fff;
  background: transparent;
  padding-left: 0;
}

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
}

#nav-overlay.active { display: block; }

/* Category Scrollmenu */
div.scrollmenu.ttf-scrollmenu {
  background-color: #111827;
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 6px 8px;
  scrollbar-width: thin;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

div.scrollmenu.ttf-scrollmenu a {
  display: inline-block;
  color: #d1d5db;
  text-align: center;
  padding: 7px 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  user-select: none;
}

div.scrollmenu.ttf-scrollmenu a.active {
  background-color: #0575e6;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 117, 230, 0.4);
}

div.scrollmenu.ttf-scrollmenu a:hover {
  background-color: rgba(255,255,255,0.18);
  color: #ffffff;
}

/* Search Bar */
.ttf-search-bar-wrap {
  position: sticky;
  top: 43px;
  z-index: 49;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ttf-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 65em;
  margin: 0 auto;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.ttf-search-inner:focus-within {
  border-color: #0575e6;
  box-shadow: 0 0 0 3px rgba(5,117,230,0.14);
  background: #fff;
}

.ttf-search-icon {
  font-size: 17px;
  flex-shrink: 0;
  opacity: 0.6;
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #111827;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.search-clear-btn {
  background: #e5e7eb;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.hidden { display: none !important; }

/* Section Headings */
h2.boh1, h2.ttf-section-heading {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  margin: 16px 0 10px;
  font-family: inherit;
  clear: both;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  color: #1f2937;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 100%);
  border-left: 4px solid #0575e6;
  border-radius: 0 6px 6px 0;
}

.result-count {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-left: 8px;
}

.clear-recent-link {
  margin-left: auto;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-recent-link:hover {
  background: #fca5a5;
}

/* Kaomoji Biosymbols Grid */
.ttf-biosymbols-grid {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  padding: 6px 14px 14px;
  margin: 0;
}

.ttf-biosymbols-grid .wxy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Segoe UI Symbol', 'Arial Unicode MS', 'Lucida Sans Unicode', 'Segoe UI Emoji', sans-serif;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.18s ease;
  user-select: none;
  word-break: break-word;
  white-space: nowrap;
}

.ttf-biosymbols-grid .wxy:hover {
  border-color: #0575e6;
  background: #eff6ff;
  color: #0284c7;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 16px rgba(5, 117, 230, 0.18);
  z-index: 5;
}

.ttf-biosymbols-grid .wxy:active {
  transform: scale(0.94);
}

.emoji-section {
  padding-bottom: 8px;
  scroll-margin-top: 100px;
  animation: sectionIn 0.35s ease-out both;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loader Ellipsis */
.loader-ellips {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 18px;
}
.loader-ellips__dot {
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0575e6;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loader-ellips__dot:nth-child(1) { left: 6px;  animation: loader-ellips1 0.6s infinite; }
.loader-ellips__dot:nth-child(2) { left: 6px;  animation: loader-ellips2 0.6s infinite; }
.loader-ellips__dot:nth-child(3) { left: 26px; animation: loader-ellips2 0.6s infinite; }
.loader-ellips__dot:nth-child(4) { left: 46px; animation: loader-ellips3 0.6s infinite; }

@keyframes loader-ellips1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes loader-ellips3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes loader-ellips2 { 0% { transform: translate(0, 0); } 100% { transform: translate(20px, 0); } }

/* Fixed Bottom Bar */
#ttf-bottom-bar, #bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #373e45, #2d1a1a);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}

.ttf-input-container, .input-container {
  position: relative;
  max-width: 60em;
  margin: 0 auto;
}

#inputBox {
  width: 100%;
  padding: 10px 100px 10px 14px;
  font-size: 15px;
  border: 1.5px solid #4b5563;
  border-radius: 10px;
  height: 64px;
  font-family: 'Segoe UI Symbol', 'Arial Unicode MS', Inter, sans-serif;
  letter-spacing: 1px;
  resize: none;
  color: #f9fafb;
  outline: none;
  transition: border-color 0.2s;
}

#inputBox:focus {
  border-color: #0575e6;
  box-shadow: 0 0 0 2px rgba(5,117,230,0.3);
}

.btn {
  position: absolute;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.copy-btn {
  background-color: #0575e6;
  color: #fff;
  bottom: 12px;
  right: 12px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(5,117,230,0.4);
}

.copy-btn:hover {
  background-color: #0252a8;
  transform: translateY(-1px);
}

.copy-btn.copied {
  background-color: #10b981;
}

.clear-btn {
  background-color: rgba(255,255,255,0.1);
  color: #f87171;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 6px;
}

.clear-btn:hover {
  background-color: #ef4444;
  color: #fff;
}

.tooltip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -180%);
  padding: 6px 14px;
  background-color: #10b981;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -210%);
}

/* Share Buttons */
.share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 6px;
  max-width: 60em;
  margin: 0 auto;
}

span.sharetext {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.resp-sharing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.resp-sharing-button__icon {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.resp-sharing-button:hover { transform: scale(1.15); }
.resp-sharing-button--facebook { background-color: #1877f2; }
.resp-sharing-button--twitter  { background-color: #1da1f2; }
.resp-sharing-button--telegram { background-color: #0088cc; }
.resp-sharing-button--pinterest{ background-color: #bd081c; }

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(to right, #0575e6, #021b79);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(5,117,230,0.4);
  font-size: 14px;
  font-weight: 600;
}

#toast-emoji {
  font-size: 16px;
  font-weight: 700;
  font-family: 'Segoe UI Symbol', sans-serif;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 120px;
  right: 20px;
  display: none;
  background-color: #0575e6;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(5,117,230,0.3);
  transition: all 0.2s ease;
}

.back-to-top:hover {
  background-color: #0252a8;
  transform: translateY(-2px);
}

/* SEO Article Section */
.ttf-seo-article-wrap {
  padding: 30px 20px 140px;
  max-width: 60em;
  margin: 0 auto;
  border-top: 2px dashed #e5e7eb;
  margin-top: 30px;
}

.ttf-article-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ttf-article-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 24px;
}

.ttf-flowchart-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px solid #dbeafe;
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.ttf-flowchart-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 16px;
  text-align: center;
}

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

.ttf-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.ttf-step-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0575e6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttf-step-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.ttf-step-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.ttf-step-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* FAQ Accordion */
.ttf-faq-section {
  margin-top: 30px;
}

.ttf-faq-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.ttf-faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ttf-faq-summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.ttf-faq-summary:hover {
  background: #f3f4f6;
  color: #0575e6;
}

.ttf-faq-answer {
  padding: 0 16px 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Footer */
footer {
  background: #0b0f19;
  color: #9ca3af;
  text-align: center;
  padding: 30px 20px 140px;
  font-size: 13px;
  border-top: 1px solid #1f2937;
}

footer p {
  margin-bottom: 8px;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Rules */
@media (max-width: 768px) {
  #inputBox {
    height: 55px;
    font-size: 14px;
    padding-right: 90px;
  }

  .copy-btn {
    padding: 6px 14px;
    font-size: 13px;
    bottom: 8px;
  }

  .ttf-biosymbols-grid {
    padding: 4px 8px;
    gap: 6px;
  }

  .ttf-biosymbols-grid .wxy {
    font-size: 14px;
    padding: 6px 10px;
    min-height: 38px;
  }

  .ttf-article-title {
    font-size: 21px;
  }
}
