/* ==========================================================================
   NickStylish — one stylesheet for every page
   1. Tokens  2. Reset  3. Layout  4. Header/Footer  5. Components
   6. Home    7. Lists  8. Article  9. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --pink: #ec4899;
  --pink-dark: #ff2d87;
  --violet: #6d3ae8;
  --violet-soft: #f3edfe;
  --indigo: #5b4fe0;
  --teal: #0f9b8e;
  --green: #0f9b6c;
  --red: #e11d48;

  --ink: #171a2b;
  --ink-2: #232741;
  --body: #4b5070;
  --muted: #7a7f9c;
  --muted-2: #8b90ad;
  --faint: #a7abc4;

  --bg: #fdfcff;
  --surface: #fff;
  --surface-2: #faf8fe;
  --line: #f1eef8;
  --line-2: #f4f2fa;
  --field: #eae7f6;

  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(87, 70, 175, .05);
  --shadow-md: 0 12px 34px rgba(87, 70, 175, .06);
  --shadow-lg: 0 22px 60px rgba(87, 70, 175, .09);

  --font-head: "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Nunito", system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --max: 1180px;
  --header-h: 66px;
}

/* 2. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--bg);
  color: #2b2f4a;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }
svg { flex: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(30px, 5.2vw, 53px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; }
h3 { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.3; }
h2.h2--sm { font-size: clamp(21px, 3vw, 26px); }
p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

a { color: var(--violet); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--pink); }

button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; font-size: 16px; }
table { border-collapse: collapse; width: 100%; }
ul, ol { margin: 0; padding-left: 22px; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--surface); padding: 12px 18px; border-radius: 0 0 var(--r-md) 0;
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { left: 0; }

.accent { color: var(--pink); }
.muted { color: var(--muted); }
.muted-sm { font-size: 14.5px; color: var(--faint); }

/* 3. Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding-top: clamp(40px, 6vw, 64px); }
.section--tight { padding-top: clamp(24px, 4vw, 40px); }
.section-head { text-align: center; }
.section-head p { margin: 14px auto 0; max-width: 780px; }
.section-note { margin-top: 12px; max-width: 820px; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; } .gap-20 { gap: 20px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.push { margin-left: auto; }
.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--tools, .grid--4 { margin-top: 28px; }

/* 4. Header / footer ------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand img { max-height: 40px; width: auto; }
.brand__mark { display: flex; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(19px, 2.4vw, 23px); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--pink); }
.brand__name span { font-size: 15px; color: var(--pink); }

.nav { margin-left: auto; }
.nav .menu { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.nav .menu a { color: #3f4460; padding-bottom: 3px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav .menu a:hover { color: var(--violet); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--pink); border-bottom-color: var(--pink); }
.nav .sub-menu { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); background: #f6f4fb; border: 1px solid #efebf8; align-items: center; justify-content: center; }
.drawer { border-top: 1px solid #f4f1fa; background: var(--surface); padding: 6px var(--gutter) 16px; }
.drawer .menu { list-style: none; margin: 0; padding: 0; }
.drawer .menu a { display: block; padding: 14px 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid #f7f5fc; }
.drawer .current-menu-item > a { color: var(--violet); }
.drawer .sub-menu { list-style: none; margin: 0; padding-left: 14px; }

.site-footer { margin-top: clamp(34px, 6vw, 56px); background: var(--bg); border-top: 1px solid #f4f1fa; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr; gap: clamp(22px, 3vw, 34px); padding-top: clamp(28px, 5vw, 40px); }
.site-footer h4 { font-size: 16px; letter-spacing: 0; }
.site-footer p { font-size: 15px; line-height: 1.75; margin-top: 14px; }
.site-footer__brand .brand { margin-bottom: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; list-style: none; padding: 0; }
.footer-links a { font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: var(--violet); }
.copyright { margin-top: 26px; padding: 18px 0 30px; border-top: 1px solid #f4f1fa; text-align: center; font-size: 14.5px; color: var(--muted-2); }

.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(31, 35, 64, .08); padding: 8px 6px 10px; grid-template-columns: repeat(5, 1fr); align-items: end; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-height: 56px; color: #3f4460; font-family: var(--font-head); font-weight: 700; font-size: 12.5px; text-align: center; }
.tabbar a.is-active { color: var(--violet); font-weight: 800; }
.tabbar .fab { color: var(--pink-dark); font-weight: 800; }
.tabbar .fab span { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: linear-gradient(135deg, #ff5a7a, var(--pink-dark)); box-shadow: 0 10px 22px rgba(255, 45, 135, .38); display: flex; align-items: center; justify-content: center; }

.to-top { position: fixed; right: 15px; bottom: 104px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid #f0eef7; box-shadow: 0 10px 26px rgba(31, 35, 64, .16); display: none; align-items: center; justify-content: center; }
.to-top.is-visible { display: flex; }

/* 5. Components ---------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.card--pad { padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 40px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: var(--r-md); font-family: var(--font-head); font-weight: 800; font-size: 15px; white-space: nowrap; transition: filter .15s ease, background .15s ease, border-color .15s ease; }
.btn--primary { background: linear-gradient(90deg, var(--pink-dark) 0%, #c026d3 52%, var(--violet) 100%); color: #fff; box-shadow: 0 12px 26px rgba(192, 38, 211, .28); letter-spacing: .05em; }
.btn--primary:hover { filter: brightness(1.06); color: #fff; }
.btn--plain { letter-spacing: 0; }
.btn--ghost { background: #f4f3f9; border: 1px solid #edebf5; color: #3f4460; }
.btn--ghost:hover { background: #eceaf5; }
.btn--soft { background: var(--violet-soft); border: 1.5px solid #e0d7fb; color: var(--violet); }
.btn--soft:hover { background: #e9e0fd; }
.btn--outline { background: var(--surface); border: 1.5px solid var(--field); color: #3f4460; }
.btn--outline:hover { border-color: #c4b5fd; color: var(--violet); }
.btn--lg { height: 54px; font-size: 15.5px; width: 100%; margin-top: 26px; }
.btn--block { width: 100%; margin-top: 12px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--copyall { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: var(--r-pill); background: linear-gradient(90deg, #7c3aed, var(--violet)); color: #fff; }

.field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--field); border-radius: var(--r-md); padding: 0 14px; height: 50px; }
.field input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; color: var(--ink-2); }
.field--search { flex: 1 1 260px; max-width: 380px; }

.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-sm); padding: 5px 12px; font-family: var(--font-head); font-weight: 800; font-size: 13.5px; }
.badge--pink { background: #fdeef5; color: var(--pink); }
.badge--violet { background: #f1eefb; color: var(--violet); }
.badge--pill { border-radius: var(--r-pill); padding: 8px 18px; font-size: 14px; white-space: nowrap; background: var(--violet-soft); border: 1px solid #e6dcfd; color: var(--violet); text-transform: uppercase; }

.chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--field); font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: #3f4460; }
.chip:hover { border-color: #c4b5fd; color: var(--violet); }
.chip.is-active { background: var(--violet-soft); border-color: #c4b5fd; color: var(--violet); }

.tag { padding: 8px 14px; border-radius: var(--r-pill); background: #f6f4fb; font-size: 14.5px; color: #3f4460; }
a.tag:hover { background: var(--violet-soft); color: var(--violet); }

.table-wrap { margin-top: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); }
.table { min-width: 560px; font-size: 16px; }
.table th { text-align: left; padding: 16px 14px; background: var(--surface-2); font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #6b7191; white-space: nowrap; }
.table td { padding: 14px; border-top: 1px solid var(--line-2); }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table tbody tr:hover { background: var(--bg); }
.num { text-align: right; }
.col-rank { width: 70px; }
.col-count { width: 140px; }
.col-change { width: 110px; }
.col-action { width: 110px; }
.cell-name { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.cell-count { font-family: var(--font-head); font-weight: 700; color: #3f4460; }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 28px; border-radius: var(--r-sm); background: #f6f4fb; color: var(--muted-2); font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.rank--top { background: #fdeef5; color: var(--pink); }
.delta { display: inline-block; padding: 4px 10px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.delta--up { background: #e6f8f1; color: var(--green); }
.delta--down { background: #fdecef; color: var(--red); }
.delta--new { background: #f1eefb; color: var(--violet); }

.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 12px); z-index: 99; background: #1f2340; color: #fff; border-radius: var(--r-md); padding: 12px 22px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 34px rgba(31, 35, 64, .3); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.feedback { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 3vw, 26px) clamp(18px, 3vw, 30px); margin-top: 34px; }
.feedback__intro { flex: 1 1 280px; }
.feedback__title { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--ink-2); }
.feedback__meta { margin-top: 6px; font-size: 15px; color: var(--muted-2); }
.fb-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--field); font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.fb-btn--yes { color: var(--green); }
.fb-btn--yes.is-on { background: #e6f8f1; border-color: #6ee7b7; }
.fb-btn--no { color: var(--red); }
.fb-btn--no.is-on { background: #fdecef; border-color: #f9a8c0; }
.fb-note { width: 100%; display: flex; gap: 12px; flex-wrap: wrap; }
.fb-note input { flex: 1 1 240px; min-width: 0; height: 48px; border: 1.5px solid var(--field); border-radius: var(--r-md); padding: 0 16px; outline: none; color: var(--ink-2); }
.fb-done { width: 100%; font-size: 15px; font-weight: 700; color: var(--green); }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: #9aa0bd; }
.breadcrumb a { color: #9aa0bd; }
.breadcrumb strong { color: #3f4460; font-weight: 600; }

.page-title { margin-top: 14px; }
.page-sub { margin-top: 14px; max-width: 680px; color: #6b7191; }

.tile { border-radius: var(--r-lg); background: linear-gradient(140deg, #efe7fe, #fde9f3 60%, #e7f1fd); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .72) 1.6px, transparent 1.7px) 0 0 / 16px 16px; opacity: .6; }
.tile > span { position: relative; font-family: var(--font-head); font-weight: 800; color: var(--indigo); }
.tile--img::after { display: none; }
.tile--img img { width: 100%; height: 100%; object-fit: cover; }

/* 6. Home ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 52px); }
.hero__deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__deco i { position: absolute; display: block; }
.blob { border-radius: 50%; filter: blur(6px); opacity: .7; }
.dots { background: radial-gradient(circle, #c7d7f7 1.6px, transparent 1.7px) 0 0 / 13px 13px; opacity: .85; }
.dots--pink { background-image: radial-gradient(circle, #f9a8d4 1.5px, transparent 1.6px); background-size: 12px 12px; }
.hero__inner { position: relative; text-align: center; }
.hero__tool { margin-top: 26px; }
.hero h1 { margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero h1 b { font-weight: 800; color: var(--pink); }
.hero__sub { margin: 18px auto 0; max-width: 640px; color: #6b7191; }

.generator { display: grid; grid-template-columns: 44% 56%; box-shadow: var(--shadow-lg); }
.generator > * { padding: clamp(20px, 3vw, 34px); min-width: 0; }
.generator__results { border-left: 1px solid var(--line-2); }
.results__mark { width: 24px; height: 24px; border-radius: 7px; background: var(--violet); display: flex; align-items: center; justify-content: center; }
.results__hint { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--muted-2); }

.step { display: flex; align-items: center; gap: 10px; }
.step + * { margin-top: 14px; }
.step:not(:first-child) { margin-top: 30px; }
.step__n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--violet); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.step__t { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink-2); }

.name-field { display: flex; border: 1.5px solid var(--field); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.name-field input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 18px; height: 52px; color: var(--ink-2); }
.name-field button { width: 54px; flex: none; border-left: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat { border-radius: 14px; padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fdf7fb; border: 1.5px solid #f6ebf4; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #3f4460; }
.cat.is-active { background: #fff0f7; border-color: #f9a8d4; color: var(--pink); }
.decors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.decors--extra { margin-top: 8px; }
.decor { height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #f4f3f9; border: 1.5px solid #edebf5; font-size: 14px; color: #3f4460; }
.decor.is-active { background: var(--violet-soft); border-color: #c4b5fd; color: var(--violet); }
.decor--more { font-family: var(--font-head); font-weight: 800; font-size: 14px; }

.results { margin-top: 16px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 9px; max-height: 452px; overflow-y: auto; padding-right: 4px; }
.result { flex: 1 1 auto; max-width: min(100%, 420px); display: flex; align-items: center; gap: 10px; border: 1px solid #f0eef7; border-radius: var(--r-md); padding: 9px 10px 9px 16px; background: var(--surface); }
.result:hover { border-color: #e3dcf7; box-shadow: 0 6px 18px rgba(87, 70, 175, .07); }
.result__text { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 400; overflow-wrap: anywhere; }
.icon-btn { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: #f2effc; border: 1px solid #eae4fa; color: var(--violet); }
.icon-btn--fav { background: #fff5f8; border: 0; color: #f4517f; opacity: .55; }
.icon-btn--fav.is-on { background: #ffe6ef; opacity: 1; }

.name-extra { margin-top: 20px; padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px); }
.name-extra .chips { margin-top: 14px; }
.name-extra .community__block + .community__block { margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 20px clamp(18px, 3vw, 30px); margin-top: 24px; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat > span:first-child { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #f1eefb; display: flex; align-items: center; justify-content: center; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--indigo); line-height: 1.2; }
.stat i { display: block; font-style: normal; font-size: 14.5px; color: var(--muted-2); }

.tool { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px 20px 24px; border: 1px solid transparent; display: flex; flex-direction: column; }
.tool__icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.tool h3 { margin-top: 22px; font-size: 19px; color: var(--ink-2); }
.tool p { margin-top: 10px; font-size: 15px; line-height: 1.62; }
.tool .btn { margin-top: auto; padding-top: 0; width: 100%; height: 42px; background: var(--surface); font-size: 14px; border: 1.5px solid; }
.tool p { margin-bottom: 22px; }

.platforms { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.platform { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid #f6e9f3; border-radius: var(--r-md); padding: 12px 20px; box-shadow: var(--shadow-sm); font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #2b2f4a; }
.platform:hover { border-color: #f0c9e4; color: #2b2f4a; }
.platform.is-active { border-color: var(--violet); background: var(--violet-soft); color: var(--violet); }

.reason { display: flex; gap: 14px; border-radius: var(--r-lg); padding: 20px; }
.reason > span:first-child { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reason b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink-2); }
.reason p { margin-top: 7px; font-size: 14.5px; line-height: 1.66; }

.section-lead { align-items: flex-end; }
.section-lead__text { flex: 1 1 320px; }
.section-lead__text p { margin-top: 12px; max-width: 640px; }
.section-lead__field { flex: 0 1 300px; }

.emoji-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.emoji-card { flex: 1 1 auto; max-width: 100%; border: 1px solid #f0eef7; border-radius: var(--r-lg); background: var(--surface); padding: 10px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.emoji-card:hover { border-color: #e3dcf7; box-shadow: 0 8px 22px rgba(87, 70, 175, .09); }
.emoji-card__rank { font-weight: 400; font-size: 12px; line-height: 1; color: var(--faint); }
.emoji-card__glyph { font-size: 21px; font-weight: 400; line-height: 1.35; color: #2b2f4a; white-space: pre-wrap; overflow-wrap: anywhere; }
.emoji-card__meta { font-size: 12px; line-height: 1; color: var(--faint); }
.library-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; color: var(--muted-2); }

.community { margin-top: 22px; display: flex; flex-direction: column; gap: 26px; }
.community__h { font-size: 17px; color: var(--ink-2); }
.community__block .chips { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nick-chip { flex: 1 1 auto; max-width: min(100%, 420px); justify-content: center; display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 8px 8px 16px; box-shadow: var(--shadow-sm); }
.nick-chip__text { font-size: 16px; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }
.nick-chip__like { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: #f6f4fb; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: #6b7191; }
.nick-chip__like.is-on, .nick-chip__like:hover { background: var(--violet-soft); color: var(--violet); }
.community__empty, .community__note { margin-top: 12px; font-size: 15px; color: var(--muted-2); }
.community__more { margin-top: 16px; }
.community__add { max-width: 520px; }
.community__add .name-field { margin-top: 14px; }
.community__loading { margin-top: 22px; color: var(--muted-2); }

.faq { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.faq > div { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px 20px; }
.faq b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink-2); }
.faq p { margin-top: 8px; font-size: 16px; line-height: 1.7; }

.charset { margin-top: 14px; font-size: 16px; }
.charset__sample { color: var(--ink-2); font-weight: 400; }
.aside__tags { margin-top: 14px; }

.cta { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(90deg, var(--pink-dark) 0%, #c026d3 48%, var(--violet) 100%); padding: clamp(28px, 5vw, 40px) clamp(18px, 4vw, 30px); text-align: center; box-shadow: 0 18px 44px rgba(192, 38, 211, .22); }
.cta h2, .cta p { color: #fff; position: relative; }
.cta h2 { font-size: clamp(22px, 3.6vw, 29px); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .9); font-size: 16px; }
.cta .btn { margin-top: 22px; border: 2px solid rgba(255, 255, 255, .85); color: #fff; letter-spacing: .05em; font-size: 16px; height: 52px; padding: 0 30px; }
.cta .btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cta .deco { position: absolute; display: block; }

/* 7. Article list -------------------------------------------------------- */
.blog-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: clamp(20px, 3vw, 28px); }
.post-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.post-row { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.5vw, 22px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(12px, 2vw, 16px); color: inherit; }
.post-row:hover { border-color: #e3dcf7; box-shadow: 0 12px 30px rgba(87, 70, 175, .08); color: inherit; }
.post-row__tile { flex: 0 1 240px; min-width: 170px; min-height: 130px; }
.post-row__tile > span { font-size: clamp(20px, 3vw, 26px); }
.post-row__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 6px 4px; }
.post-row h3 { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); letter-spacing: -.01em; }
.post-row p { font-size: 16px; line-height: 1.68; }
.post-row__more { margin-top: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 14.5px; color: var(--violet); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }

.featured { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 30px); padding: clamp(16px, 2.5vw, 24px); color: inherit; }
.featured:hover { border-color: #e3dcf7; color: inherit; }
.featured__tile { flex: 1 1 300px; min-height: 210px; }
.featured__tile > span { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; }
.featured__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured h2 { font-size: clamp(22px, 3.4vw, 31px); line-height: 1.24; }
.featured p { font-size: 16.5px; }

.pager { margin-top: clamp(22px, 3vw, 30px); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 11px; background: var(--surface); border: 1.5px solid var(--field); font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #3f4460; }
.pager .page-numbers.current { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager a.page-numbers:hover { border-color: #c4b5fd; color: var(--violet); }
.empty { margin-top: 18px; border: 1px dashed #e3dcf7; border-radius: 18px; padding: 40px 20px; text-align: center; color: var(--muted-2); font-size: 16px; }

.notfound { text-align: center; padding: clamp(20px, 5vw, 48px) 0 0; }
.notfound__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 9vw, 76px); color: var(--indigo); }
.notfound .page-sub, .notfound__search { margin-left: auto; margin-right: auto; }
.notfound__search { max-width: 380px; margin-top: 22px; }
.notfound__search .field--search { max-width: none; }
.notfound__actions { justify-content: center; margin-top: 22px; }
.notfound__more { margin-top: clamp(30px, 5vw, 52px); }

/* 8. Article ------------------------------------------------------------- */
.article-layout { display: flex; gap: clamp(22px, 4vw, 44px); align-items: flex-start; flex-wrap: wrap; }
.article { flex: 1 1 520px; min-width: 0; max-width: 760px; }
.article p { font-size: 17px; line-height: 1.8; color: var(--body); }
.article p + p, .article ol, .article ul, .article figure, .article blockquote { margin-top: 14px; }
.article h2 { margin-top: 34px; font-size: clamp(22px, 3vw, 28px); line-height: 1.28; }
.article h3 { margin-top: 20px; font-size: 19.5px; color: var(--ink-2); letter-spacing: 0; }
.article h2 + p, .article h3 + p { margin-top: 12px; }
.article li { font-size: 17px; line-height: 1.9; color: var(--body); }
.article strong { color: var(--ink-2); }
.article img { border-radius: var(--r-lg); }
/* Reserve the box before the file arrives so the text below does not jump.
   aspect-ratio rather than width/height attributes: the ratio scales with the
   column instead of pinning a pixel height, so nothing is ever stretched. */
.article .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article figure { margin-left: 0; margin-right: 0; }
.article figcaption { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.article blockquote { border-left: 4px solid #c4b5fd; background: var(--surface-2); border-radius: 0 14px 14px 0; padding: 18px 20px; margin-left: 0; margin-right: 0; }
.article blockquote p { margin: 0; font-size: 16.5px; color: #3f4460; }
.article .table-wrap, .article table { margin-top: 16px; }
.article__lead { margin-top: 0; }
.article__faq-title { margin-top: 34px; font-size: 22px; }
.article__tags { margin-top: 30px; }

.single__meta { margin-top: 16px; }
.single__title { margin-top: 14px; max-width: 900px; }
.single__lead { margin-top: 16px; max-width: 760px; font-size: clamp(17px, 2vw, 19px); line-height: 1.68; color: #6b7191; }
.article-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 12px; }
.author > span:first-child { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(140deg, #e7e0fc, #fbd7e7); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--indigo); }
.author b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink-2); }
.author i { display: block; font-style: normal; font-size: 14.5px; color: var(--muted-2); }
.share { width: 44px; height: 44px; border-radius: 11px; background: #1f2340; display: flex; align-items: center; justify-content: center; }
.share:hover { background: var(--pink); }
.cover { min-height: clamp(160px, 26vw, 300px); border-radius: var(--r-xl); overflow: hidden; }
.cover--img img { width: 100%; height: auto; display: block; border-radius: var(--r-xl); }

.aside { flex: 1 1 260px; max-width: 320px; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.aside__box { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 22px; }
.aside__box--soft { background: var(--surface-2); }
.aside__box h4 { font-size: 16.5px; letter-spacing: 0; }
.toc { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.toc a { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--violet); }
.toc .toc--3 { padding-left: 14px; font-size: 15px; }
.aside__cta { background: linear-gradient(150deg, #f6f2ff, #fdf1f7); }
.aside__cta p { margin-top: 10px; font-size: 15px; line-height: 1.65; }
.aside__cta .btn { margin-top: 16px; width: 100%; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 18px; }
.related a { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: inherit; }
.related a:hover { border-color: #e3dcf7; box-shadow: 0 12px 30px rgba(87, 70, 175, .08); color: inherit; }
.related .tile { height: 96px; }
.related .tile > span { font-size: 24px; }
.related b { font-family: var(--font-head); font-weight: 800; font-size: 17.5px; line-height: 1.34; color: var(--ink-2); }

.prevnext { display: flex; gap: 14px; flex-wrap: wrap; }
.prevnext a { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px 20px; color: inherit; }
.prevnext a:hover { border-color: #e3dcf7; color: inherit; }
.prevnext a.next { justify-content: flex-end; text-align: right; }
.prevnext i { display: block; font-style: normal; font-size: 14px; color: var(--faint); }
.prevnext b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--ink-2); }

/* 9. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero__deco { display: none; }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .generator { grid-template-columns: 1fr; }
  .generator__results { border-left: 0; border-top: 1px solid var(--line-2); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { flex-direction: column; }
  .aside { position: static; max-width: none; width: 100%; flex: 1 1 auto; }
  .toc { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
  .toc .toc--3 { padding-left: 0; }
}

@media (max-width: 820px) {
  :root { --gutter: 15px; }
  body { padding-bottom: 96px; }
  .tabbar { display: grid; }
  .toast { bottom: 116px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .results { max-height: none; }
  .featured__tile { min-height: 170px; }
  .field--search { max-width: none; }
}

@media (max-width: 620px) {
  .grid--5, .grid--4, .stats { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .decors { grid-template-columns: repeat(4, 1fr); }
  .platforms { justify-content: flex-start; }
  .post-row__tile { flex: 1 1 100%; min-height: 150px; }
  .featured__tile { flex: 1 1 100%; }
  .feedback .row { width: 100%; }
  .fb-btn { flex: 1 1 auto; justify-content: center; }
  .emoji-grid, .results, .nick-chips, .chips { gap: 8px; }
  .emoji-card { padding: 8px 12px; }
  .emoji-card__glyph { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .tabbar, .to-top, .cta, .toast, .feedback, .aside { display: none !important; }
  body { padding-bottom: 0; }
}

/* The generator embedded in an article: same component as the home page, minus
   the landing-page breathing room, so it reads as part of the piece. */
.nsty-embed { margin: 18px 0 6px; }
.nsty-embed .hero { padding-top: 0; }
.nsty-embed .hero__deco { display: none; }
.nsty-embed .hero__inner > h1,
.nsty-embed .hero__inner > .hero__sub { display: none; }

/* A wide table scrolls inside its own box instead of pushing the article sideways. */
.tbl-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; border-radius: 10px;
  /* inline-size containment stops the table's width from being reported upward.
     Without it the table widens the flex item that holds the article, and the
     horizontal scrollbar lands on the page instead of on the table. */
  contain: inline-size; width: 100%; max-width: 100%;
}
.tbl-wrap table { margin: 0; min-width: 560px; }

/* Name bank inside an article: the theme's own chip, laid out as a wrapping
   grid. Deliberately no font-weight on the chip text — these are decorative
   glyph strings and bolding them muddies the shapes the reader is judging. */
.nick-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.nick-chips .nick-chip { padding: 8px 16px; cursor: pointer; font-weight: 400; }
.nick-chips .nick-chip__text { font-weight: 400; }

/* Item grids: every chip sizes to its own text and the row is filled by letting
   chips grow, so a short glyph and a long decorated name sit side by side
   without either being squeezed. The trailing spacer stops a lone item on the
   last row from stretching across the whole width. No font-weight on items —
   bolding muddies the glyph shapes people are choosing between. */
.emoji-grid::after, .nick-chips::after, .chips::after { content: ""; flex: 999 1 0; }
.results::after { content: ""; flex: 999 1 0; }

/* The article's contents list, printed once at the top of the text. */
.toc-inline { display: block; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 16px; }
.toc-inline summary { cursor: pointer; font-family: var(--font-head); color: var(--ink-2); }
.toc-inline .toc { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.link-soon { color: inherit; }


/* Nick decoder. */
.decoder { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.decoder textarea { width: 100%; min-height: 64px; border: 1.5px solid var(--field); border-radius: var(--r-md); padding: 12px 16px; font: inherit; font-size: 20px; line-height: 1.5; color: var(--ink-2); background: var(--surface); resize: vertical; }
.decoder textarea:focus { outline: none; border-color: #c4b5fd; }
.decoder__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.decoder__sample { border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); padding: 5px 12px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.decoder__sample:hover { border-color: #c4b5fd; }
.decoder__summary { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--muted); }
.decoder__summary b { color: var(--violet); }
.decoder__parts { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 4px; }
.decoder__part { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.decoder__label { font-size: 14px; color: var(--muted); }
.decoder__frame { display: flex; flex-wrap: wrap; gap: 8px; }
.decoder__reuse .name-field input { height: 44px; }
.decoder .nick-chip { cursor: pointer; padding: 8px 16px; min-height: 42px; }
.decoder .nick-chip[disabled] { opacity: .5; cursor: default; }
.decoder__table { font-size: 14.5px; }
.decoder__table td { vertical-align: middle; }
.decoder__table .nick-chip { flex: none; padding: 4px 12px; min-height: 0; }
.decoder__name { display: block; line-height: 1.45; }
.decoder__name i { color: var(--faint); font-style: normal; font-size: 13px; }
.decoder__part > .nick-chip, .decoder__frame > .nick-chip { flex: none; }

/* Home: live guides. */
.guide-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-top: 22px; }
.guide-link { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; color: inherit; }
.guide-link:hover { border-color: #e3dcf7; box-shadow: var(--shadow-md); color: inherit; }
.guide-link b { font-family: var(--font-head); font-size: 17px; color: var(--ink-2); line-height: 1.35; }
.guide-link span { font-size: 15px; line-height: 1.6; color: var(--body); }
