/* ===========================================================
   CoolNickname — design system (light/dark, pink accent).
   Translated from the React prototype to dependency-free CSS.
   No Bootstrap, no jQuery. Mobile-first responsive.
   =========================================================== */

/* ---------- tokens ---------- */
:root, [data-theme="light"] {
  --bg: #f5f5f7; --surface: #ffffff; --surface-2: #eeeef1;
  --text: #18181b; --muted: #6b7280;
  --border: rgba(0,0,0,0.08); --border-strong: rgba(0,0,0,0.17);
  --chip-bg: #ebebed;
  --accent: #ff0068; --accent-tint: rgba(255,0,104,0.10); --accent-shadow: rgba(255,0,104,0.30);
  --nav-bg: rgba(255,255,255,0.80);
  --toast-bg: #18181b; --toast-fg: #ffffff;
  --max: 1160px;
}
[data-theme="dark"] {
  --bg: #0f0f13; --surface: #1a1a21; --surface-2: #141419;
  --text: #f4f4f5; --muted: #9a9aa6;
  --border: rgba(255,255,255,0.09); --border-strong: rgba(255,255,255,0.22);
  --chip-bg: #26262e;
  --accent: #ff2f7f; --accent-tint: rgba(255,47,127,0.15); --accent-shadow: rgba(255,0,104,0.40);
  --nav-bg: rgba(16,16,20,0.80);
  --toast-bg: #f4f4f5; --toast-fg: #18181b;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cn-body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  transition: background .25s ease;
}
.cn-body img { max-width: 100%; height: auto; }
.cn-body a { color: var(--accent); }
.cn-body input, .cn-body textarea, .cn-body button, .cn-body select { font-family: inherit; }
.cn-body input::placeholder { color: var(--muted); opacity: 1; }
.cn-body ::-webkit-scrollbar { width: 10px; height: 10px; }
.cn-body ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
.ic { display: block; flex-shrink: 0; }
.cn-muted { color: var(--muted); }
.cn-skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200; }
.cn-skip:focus { left: 0; }

/* layout helpers */
.cn-wrap { max-width: var(--max); margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.cn-section { padding-top: 48px; padding-bottom: 48px; }
.cn-section.alt { background: var(--surface-2); }
.cn-narrow { max-width: 820px; }
.cn-wide { max-width: 1200px; }

/* section heading */
.cn-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); }
.cn-kicker .ic { color: var(--muted); }
.cn-kicker.center { display: inline-flex; }
.cn-kicker span { font-size: 15.6px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cn-h2 { margin: 0; font-size: 33.8px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); }
.cn-sec-head { margin-bottom: 24px; }
.cn-sec-head.center { text-align: center; }
.cn-sec-head.center .cn-kicker { justify-content: center; }
.cn-sub { margin: 8px 0 0; font-size: 19.5px; color: var(--muted); line-height: 1.6; max-width: 700px; }
.cn-sec-head.center .cn-sub { margin-left: auto; margin-right: auto; }
.cn-pill { font-size: 15.6px; font-weight: 700; color: var(--muted); background: var(--chip-bg); padding: 3px 9px; border-radius: 999px; }

/* buttons */
.cn-btn, .cn-btn-outline, .cn-btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; border-radius: 12px; font-size: 19.5px; font-weight: 700;
  text-decoration: none; padding: 0 22px; height: 46px; font-family: inherit; transition: filter .15s, box-shadow .15s;
}
.cn-btn { background: var(--accent); color: #fff; box-shadow: 0 6px 18px var(--accent-shadow); }
.cn-btn:hover { filter: brightness(1.05); }
.cn-btn-dark { background: #18181b; color: #fff; }
.cn-btn-outline { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cn-btn-outline.loading { opacity: .6; pointer-events: none; }

/* ===========================================================
   Header
   =========================================================== */
.cn-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.cn-header-inner { max-width: var(--max); margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.cn-header.wide .cn-header-inner { max-width: 1200px; }
.cn-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.cn-brand-box { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; box-shadow: 0 4px 12px var(--accent-shadow); }
.cn-brand-sm .cn-brand-box { width: 32px; height: 32px; border-radius: 9px; font-size: 23.4px; box-shadow: none; }
.cn-brand-text { font-size: 24.7px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.cn-brand-sm .cn-brand-text { font-size: 23.4px; letter-spacing: -0.4px; }
.cn-brand-text b { color: var(--accent); font-weight: 800; }
.cn-nav { display: flex; gap: 2px; margin-left: 8px; }
.cn-nav a { text-decoration: none; color: var(--muted); font-size: 18.9px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.cn-nav a:hover { color: var(--text); background: var(--chip-bg); }
.cn-spacer-grow { flex: 1; }
.cn-iconbtn { width: 38px; height: 38px; border-radius: 999px; border: none; cursor: pointer; background: var(--chip-bg); color: var(--text); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cn-burger { display: none; border-radius: 10px; }
.cn-header-cta { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 16px; height: 40px; font-size: 18.2px; font-weight: 700; box-shadow: 0 4px 14px var(--accent-shadow); flex-shrink: 0; }

/* mobile dropdown */
.cn-mobile-nav { display: none; border-top: 1px solid var(--border); padding: 6px 16px 14px; flex-direction: column; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cn-mobile-nav a { text-decoration: none; color: var(--text); font-size: 20.8px; font-weight: 600; padding: 12px 8px; }
html.cn-menu-open .cn-mobile-nav { display: flex; }

/* ===========================================================
   Hero + generator
   =========================================================== */
.cn-hero { background: transparent; }
.cn-hero-inner { max-width: 860px; margin: 0 auto; padding: 46px 22px 12px; text-align: center; }
.cn-hero h1 { margin: 0 0 10px; font-size: clamp(36.4px, 4.5vw, 57.2px); font-weight: 800; letter-spacing: -1.1px; line-height: 1.08; color: var(--text); }
.cn-hero h1 .ac, .cn-ac { color: var(--accent); }
.cn-hero-lede { margin: 0 0 24px; font-size: clamp(18.2px, 2vw, 21.4px); color: var(--muted); line-height: 1.5; }
.cn-hero-lede b { color: var(--text); }

.cn-gen { }
.cn-gen-input-wrap { display: flex; align-items: center; gap: 9px; background: var(--surface); border-radius: 16px; padding: 8px 8px 8px 18px; box-shadow: 0 16px 44px rgba(0,0,0,0.10), inset 0 0 0 1.5px var(--border); }
.cn-gen-input { flex: 1; border: none; outline: none; background: none; font-size: 27.3px; font-weight: 700; color: var(--text); min-width: 0; }
.cn-gen-clear { width: 36px; height: 36px; border-radius: 10px; border: none; cursor: pointer; background: var(--chip-bg); color: var(--muted); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cn-gen-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.cn-gen-modes { display: flex; gap: 4px; background: var(--chip-bg); border-radius: 12px; padding: 4px; }
.cn-gen-modes button { border: none; cursor: pointer; border-radius: 9px; padding: 9px 18px; font-size: 18.9px; font-weight: 700; display: flex; align-items: center; gap: 7px; background: transparent; color: var(--muted); }
.cn-gen-modes button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 5px rgba(0,0,0,0.1); }

/* keyboard panel */
.cn-gen-kb { margin-top: 16px; background: var(--surface); border-radius: 16px; padding: 14px; text-align: left; box-shadow: inset 0 0 0 1px var(--border); }
.cn-kb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cn-kb-tab { border: none; cursor: pointer; border-radius: 999px; padding: 7px 13px; font-size: 16.9px; font-weight: 700; background: var(--chip-bg); color: var(--text); }
.cn-kb-tab.on { background: var(--accent); color: #fff; }
.cn-kb-hint { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 16.2px; color: var(--muted); font-weight: 600; }
.cn-kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; max-height: 184px; overflow-y: auto; }
.cn-kb-grid.kao { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.cn-kb-key { border: none; cursor: pointer; background: var(--bg); border-radius: 10px; height: 48px; font-size: 28.6px; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all .12s; }
.cn-kb-grid.kao .cn-kb-key { height: 46px; font-size: 16.9px; }
.cn-kb-key:hover { background: var(--accent); color: #fff; }

/* generator output */
.cn-gen-out { max-width: 980px; margin: 20px auto 0; }
.cn-gen-empty { text-align: center; padding: 36px 16px; color: var(--muted); font-size: 19.5px; }
.cn-gen-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 12px; font-size: 19.5px; color: var(--text); flex-wrap: wrap; }
.cn-gen-head b { font-weight: 800; }
.cn-gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 9px; grid-auto-rows: 1fr; }
.cn-out { width: 100%; height: 100%; min-height: 60px; border: none; cursor: pointer; text-align: left; background: var(--surface); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .14s; overflow: hidden; }
.cn-out:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cn-out-body { flex: 1; min-width: 0; }
.cn-out-label { display: block; font-size: 13.7px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.cn-out-val { display: block; font-size: 26px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.cn-out-copy { flex-shrink: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 16.2px; font-weight: 700; }
.cn-out:hover .cn-out-copy { color: var(--accent); }

/* community results block (live search) */
.cn-community { max-width: 980px; margin: 30px auto 0; }
.cn-sec-kicker { display: flex; align-items: center; gap: 8px; margin: 0 2px 14px; font-size: 19.5px; font-weight: 800; color: var(--text); flex-wrap: wrap; }
.cn-emoji-block { margin-bottom: 16px; }
.cn-skel { background: var(--surface); border-radius: 12px; height: 62px; box-shadow: inset 0 0 0 1px var(--border); position: relative; overflow: hidden; }
.cn-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--chip-bg), transparent); transform: translateX(-100%); animation: cn-shimmer 1.2s infinite; }
@keyframes cn-shimmer { to { transform: translateX(100%); } }

/* ===========================================================
   Nick cards + ranked rows (live API)
   =========================================================== */
.cn-nickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.cn-nick { background: var(--surface); border-radius: 12px; padding: 12px 13px; display: flex; flex-direction: column; gap: 9px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .14s; }
.cn-nick:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.09), inset 0 0 0 1.5px var(--accent); }
.cn-nick-name { text-align: left; border: none; background: none; cursor: pointer; padding: 0; font-size: 23.4px; color: var(--text); line-height: 1.3; word-break: break-word; font-family: inherit; }
.cn-nick-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.cn-spacer { flex: 1; }
.cn-like { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; cursor: pointer; padding: 0; font-size: 16.2px; font-weight: 700; color: var(--muted); font-family: inherit; }
.cn-like.on { color: var(--accent); }
.cn-copies { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 16.2px; font-weight: 700; }
.cn-nick-tags { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.cn-tag { font-size: 14.3px; font-weight: 700; color: var(--muted); background: var(--chip-bg); padding: 2px 8px; border-radius: 999px; }
.cn-copybtn, .cn-row-copy { border: none; cursor: pointer; background: var(--chip-bg); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.cn-copybtn:hover, .cn-row-copy:hover { color: var(--accent); }

.cn-rowlist { display: flex; flex-direction: column; gap: 9px; }
.cn-row { display: flex; align-items: center; gap: 11px; background: var(--surface); border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .14s; }
.cn-row:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.09), inset 0 0 0 1.5px var(--accent); }
.cn-rank { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16.2px; font-weight: 800; background: var(--chip-bg); color: var(--muted); }
.cn-rank.medal { background: var(--accent); color: #fff; }
.cn-row-name { flex: 1; text-align: left; border: none; background: none; cursor: pointer; font-size: 23.4px; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; font-family: inherit; }
.cn-row .cn-like { flex-shrink: 0; }
.cn-loadmore-wrap { text-align: center; margin-top: 22px; }
.cn-top100grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.cn-top100-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }

/* ===========================================================
   Symbols grid
   =========================================================== */
.cn-symcols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.cn-sym-h { margin: 0 0 12px; font-size: 20.8px; font-weight: 800; color: var(--text); }
.cn-symgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px; }
.cn-symgrid.kao { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.cn-sym { border: none; cursor: pointer; background: var(--surface); border-radius: 11px; height: 52px; font-size: 31.2px; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: all .13s; }
.cn-symgrid.kao .cn-sym { height: 48px; font-size: 17.6px; }
.cn-sym:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===========================================================
   Theme cards
   =========================================================== */
.cn-themegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.cn-theme { border: none; cursor: pointer; text-align: left; text-decoration: none; padding: 16px; border-radius: 16px; background: var(--surface); color: var(--text); min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px var(--border); transition: transform .15s, box-shadow .15s; }
.cn-theme:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08), inset 0 0 0 1.5px var(--border-strong); }
.cn-theme-emoji { font-size: 39px; line-height: 1; }
.cn-theme-name { font-size: 20.8px; font-weight: 800; letter-spacing: -0.2px; color: var(--text); }
.cn-theme-count { font-size: 15.6px; color: var(--muted); font-weight: 600; }

/* ===========================================================
   Stats / commitments / privacy
   =========================================================== */
.cn-statgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cn-stat { background: var(--surface); border-radius: 16px; padding: 20px 18px; text-align: center; box-shadow: inset 0 0 0 1px var(--border); }
.cn-stat-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 11px; background: var(--chip-bg); color: var(--muted); align-items: center; justify-content: center; margin-bottom: 10px; }
.cn-stat-num { font-size: 36.4px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); }
.cn-stat-num .s { color: var(--muted); }
.cn-stat-label { font-size: 16.9px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.cn-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cn-feature { background: var(--surface); border-radius: 16px; padding: 18px; display: flex; gap: 14px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-feature-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--chip-bg); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.cn-feature-t { font-size: 20.8px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.2px; }
.cn-feature-d { font-size: 17.6px; color: var(--muted); line-height: 1.55; }

.cn-privacy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; }
.cn-privacy-h { margin: 0 0 12px; font-size: 33.8px; font-weight: 800; letter-spacing: -0.6px; color: var(--text); }
.cn-privacy-p { margin: 0; font-size: 19.5px; color: var(--muted); line-height: 1.65; }
.cn-badge-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: var(--chip-bg); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 17.6px; font-weight: 700; }
.cn-badge-line .ic { color: var(--muted); }
.cn-privacy-list { display: grid; gap: 12px; }
.cn-privacy-card { background: var(--surface); border-radius: 14px; padding: 15px 16px; display: flex; gap: 13px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-privacy-card .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--chip-bg); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.cn-privacy-card .t { font-size: 19.5px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.cn-privacy-card .d { font-size: 16.9px; color: var(--muted); line-height: 1.5; }

/* ===========================================================
   FAQ
   =========================================================== */
.cn-faq { display: flex; flex-direction: column; gap: 10px; }
.cn-faq-item { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.cn-faq-q { width: 100%; border: none; cursor: pointer; background: none; text-align: left; padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-family: inherit; }
.cn-faq-q > span:first-child { flex: 1; font-size: 20.2px; font-weight: 700; color: var(--text); line-height: 1.4; }
.cn-faq-ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--chip-bg); color: var(--muted); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s, color .2s; }
.cn-faq-item.open .cn-faq-ic { background: var(--text); color: var(--bg); transform: rotate(180deg); }
.cn-faq-a { display: none; padding: 0 18px 17px; font-size: 18.2px; color: var(--muted); line-height: 1.65; }
.cn-faq-item.open .cn-faq-a { display: block; }

/* ===========================================================
   Footer
   =========================================================== */
.cn-footer { background: var(--surface-2); border-top: 1px solid var(--border); }
.cn-footer-grid { max-width: var(--max); margin: 0 auto; padding: 46px 22px 26px; display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, 1fr); gap: 30px; }
.cn-footer-about p { margin: 12px 0 0; font-size: 17.6px; color: var(--muted); line-height: 1.6; max-width: 280px; }
.cn-footer-col h4 { margin: 0 0 14px; font-size: 16.9px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.cn-footer-links { display: flex; flex-direction: column; gap: 10px; }
.cn-footer-links a { text-decoration: none; font-size: 17.6px; color: var(--muted); font-weight: 500; width: fit-content; }
.cn-footer-links a:hover { color: var(--accent); }
.cn-footer-bottom { border-top: 1px solid var(--border); padding: 18px 22px; text-align: center; font-size: 16.9px; color: var(--muted); }

/* ===========================================================
   Toast
   =========================================================== */
.cn-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 999; display: flex; align-items: center; gap: 10px; background: var(--toast-bg); color: var(--toast-fg); padding: 13px 22px; border-radius: 999px; font-size: 19.5px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,0.3); animation: cn-pop .28s cubic-bezier(.2,1.3,.5,1); max-width: 90vw; }
.cn-toast.out { transition: opacity .3s, transform .3s; opacity: 0; transform: translateX(-50%) translateY(8px); }
.cn-toast-ic { display: flex; width: 22px; height: 22px; border-radius: 999px; background: var(--accent); align-items: center; justify-content: center; flex-shrink: 0; }
.cn-toast-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes cn-pop { from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.92); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }

/* ===========================================================
   Single (Free Fire) + article extras
   =========================================================== */
.cn-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 16.9px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.cn-breadcrumb a { text-decoration: none; color: var(--muted); }
.cn-breadcrumb a:hover { color: var(--accent); }
.cn-breadcrumb .cur { color: var(--text); }
.cn-post-hero { background: transparent; }
.cn-post-hero-inner { max-width: 860px; margin: 0 auto; padding: 18px 22px 26px; text-align: center; }
.cn-post-hero h1 { margin: 0 0 14px; font-size: clamp(36.4px, 4.5vw, 54.6px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; color: var(--text); }
.cn-post-hero .lede { margin: 0 auto; font-size: clamp(19.5px, 2vw, 22.1px); color: var(--muted); line-height: 1.6; max-width: 640px; }
.cn-post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 16.9px; color: var(--muted); font-weight: 600; }
.cn-post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cn-ava { width: 26px; height: 26px; border-radius: 999px; background: linear-gradient(135deg, oklch(0.66 0.16 250), oklch(0.55 0.18 290)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15.6px; }

.cn-toc { max-width: 1200px; margin: 6px auto 0; padding: 0 22px; }
.cn-toc-inner { background: var(--surface); border-radius: 14px; padding: 14px 18px; box-shadow: inset 0 0 0 1px var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cn-toc-label { font-size: 16.2px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.cn-toc a { text-decoration: none; font-size: 17.6px; font-weight: 600; color: var(--text); background: var(--chip-bg); padding: 6px 12px; border-radius: 999px; }
.cn-toc a:hover { color: var(--accent); }

.cn-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.cn-filter { border: none; cursor: pointer; border-radius: 999px; padding: 8px 14px; font-size: 17.6px; font-weight: 700; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); font-family: inherit; }
.cn-filter.on { background: var(--accent); color: #fff; box-shadow: none; }

.cn-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cn-step { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-step-num { width: 34px; height: 34px; border-radius: 10px; background: var(--chip-bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20.8px; margin-bottom: 12px; }
.cn-step-t { font-size: 20.2px; font-weight: 800; color: var(--text); margin-bottom: 5px; letter-spacing: -0.2px; }
.cn-step-d { font-size: 17.6px; color: var(--muted); line-height: 1.55; }

.cn-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cn-tip { background: var(--surface); border-radius: 14px; padding: 15px 16px; display: flex; gap: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-tip-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--chip-bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17.6px; }
.cn-tip span:last-child { font-size: 18.2px; color: var(--text); line-height: 1.55; }

.cn-compat { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cn-compat-head, .cn-compat-row { display: flex; align-items: center; padding: 13px 18px; gap: 12px; }
.cn-compat-head { border-bottom: 1px solid var(--border); font-size: 16.2px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.cn-compat-head span:first-child { flex: 1; }
.cn-compat-row { border-top: 1px solid var(--border); }
.cn-compat-row:first-of-type { border-top: none; }
.cn-compat-row .k { flex: 1; font-size: 18.9px; font-weight: 600; color: var(--text); }
.cn-compat-badge { font-size: 16.2px; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cn-compat-badge.yes { color: #1f8a5b; background: rgba(31,138,91,0.14); }
.cn-compat-badge.partial { color: #b8860b; background: rgba(184,134,11,0.14); }
.cn-compat-badge.no { color: #d33; background: rgba(221,51,51,0.13); }

.cn-helpful { background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px var(--border); text-align: center; }
.cn-helpful-q { font-size: 22.1px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cn-helpful-sub { font-size: 17.6px; color: var(--muted); margin-bottom: 16px; }
.cn-helpful-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cn-helpful-btns button { border: none; cursor: pointer; border-radius: 12px; padding: 12px 22px; font-size: 18.2px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
.cn-helpful-yes { background: var(--chip-bg); color: var(--text); }
.cn-helpful-no { background: var(--chip-bg); color: var(--text); }
.cn-helpful-stat { font-size: 16.2px; color: var(--muted); margin-top: 14px; }
.cn-helpful-c { font-weight: 800; opacity: .75; }
.cn-helpful-c::before { content: "· "; opacity: .55; }
.cn-helpful-done { font-size: 21.4px; font-weight: 800; color: var(--text); }

.cn-authorbox { margin-top: 16px; background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: inset 0 0 0 1px var(--border); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cn-author-ava { width: 56px; height: 56px; border-radius: 999px; flex-shrink: 0; background: linear-gradient(135deg, oklch(0.66 0.16 250), oklch(0.55 0.18 290)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 31.2px; overflow: hidden; }
.cn-author-name { display: flex; align-items: center; gap: 6px; font-size: 21.4px; font-weight: 800; color: var(--text); }
.cn-author-role { font-size: 16.9px; color: var(--muted); font-weight: 700; margin: 2px 0 6px; }
.cn-author-bio { font-size: 17.6px; color: var(--muted); line-height: 1.55; }

.cn-related { display: flex; gap: 10px; flex-wrap: wrap; }
/* live feeds (most popular / viewed / recently added) */
.cn-livegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cn-live-h { display: flex; align-items: center; gap: 7px; font-size: 18.2px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.cn-live-h .ic { color: var(--muted); }
.cn-livecol .cn-related { gap: 7px; }
.cn-livecol .cn-chip { padding: 7px 12px; font-size: 16.9px; }
.cn-chip-n { font-weight: 800; opacity: .65; margin-left: 1px; }
.cn-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--muted); border-radius: 999px; padding: 11px 18px; font-size: 18.9px; box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
.cn-chip:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* contribute */
.cn-contribute-preview { background: var(--surface); border-radius: 16px; padding: 22px; text-align: center; box-shadow: inset 0 0 0 1px var(--border); font-size: 33.8px; font-weight: 700; color: var(--text); min-height: 44px; word-break: break-word; }
.cn-contribute-form { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-label { display: block; font-size: 15.6px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 7px; }
.cn-input { width: 100%; background: var(--bg); border: none; border-radius: 12px; padding: 13px 15px; font-size: 23.4px; font-weight: 600; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.cn-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cn-contribute-success { margin-top: 16px; text-align: center; background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-contribute-success .nm { font-size: 28.6px; font-weight: 700; color: var(--text); }

/* card banner (archive) */
.cn-archive-hero { border-radius: 24px; padding: clamp(24px,4vw,38px); color: #fff; background: linear-gradient(120deg, #232938, #14161d); margin-top: 6px; }
.cn-archive-hero h1 { margin: 0; font-size: clamp(31.2px,4vw,44.2px); font-weight: 800; letter-spacing: -0.7px; }
.cn-archive-hero p { margin: 8px 0 0; font-size: 18.9px; opacity: .92; font-weight: 600; }
.cn-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.cn-postcard { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cn-postcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.10), inset 0 0 0 1px var(--border); }
.cn-postcard-thumb { display: block; aspect-ratio: 40 / 21; background: var(--surface-2); overflow: hidden; }
.cn-postcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cn-postcard:hover .cn-postcard-thumb img { transform: scale(1.04); }
.cn-postcard-emoji { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 52px; }
.cn-postcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.cn-postcard h2 { margin: 0; font-size: 22.1px; line-height: 1.3; }
.cn-postcard h2 a { color: var(--text); text-decoration: none; }
.cn-postcard h2 a:hover { color: var(--accent); }
.cn-postcard .ex { font-size: 16.9px; color: var(--muted); line-height: 1.5; }
.cn-hlink { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; font-size: 17.6px; text-decoration: none; }
.cn-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cn-pagination .page-numbers { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: 18.2px; box-shadow: inset 0 0 0 1px var(--border); }
.cn-pagination .page-numbers.current { background: var(--accent); color: #fff; box-shadow: none; }

/* contact CTA (about) */
.cn-cta { border-radius: 24px; padding: clamp(28px,5vw,46px); text-align: center; background: linear-gradient(120deg, #232938, #14161d); color: #fff; }
.cn-cta h2 { margin: 0 0 10px; font-size: clamp(29.9px,4vw,41.6px); font-weight: 800; letter-spacing: -0.7px; }
.cn-cta p { margin: 0 auto 24px; font-size: 20.8px; opacity: 0.92; max-width: 520px; line-height: 1.5; }
.cn-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cn-cta-btns a, .cn-cta-btns button { height: 50px; }
.cn-rank-formula { text-align: center; background: var(--accent-tint); border-radius: 14px; padding: 18px 16px; margin-bottom: 22px; }
.cn-rank-formula .lbl { font-size: 15.6px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.cn-rank-formula .f { font-size: clamp(20.8px,3vw,27.3px); font-weight: 800; color: var(--text); line-height: 1.5; }
.cn-member { background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: inset 0 0 0 1px var(--border); text-align: center; }
.cn-member-ava { width: 64px; height: 64px; border-radius: 999px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 33.8px; font-weight: 800; color: #fff; }
.cn-member-name { font-size: 21.4px; font-weight: 800; color: var(--text); }
.cn-member-role { font-size: 16.2px; font-weight: 700; color: var(--muted); margin: 2px 0 8px; }
.cn-member-bio { font-size: 16.9px; color: var(--muted); line-height: 1.55; }
.cn-statband { background: var(--surface); border-radius: 18px; padding: 26px 18px; box-shadow: inset 0 0 0 1px var(--border); display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.cn-statband .big { font-size: 39px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); text-align: center; }
.cn-statband .lab { font-size: 16.9px; color: var(--muted); font-weight: 600; margin-top: 2px; text-align: center; }

/* ===========================================================
   Prose (legal / editorial pages + post body)
   =========================================================== */
.cn-prose { font-size: 20.2px; color: var(--text); line-height: 1.75; }
.cn-prose > *:first-child { margin-top: 0; }
.cn-prose p { margin: 0 0 16px; color: var(--text); }
.cn-prose h2 { font-size: 28.6px; font-weight: 800; letter-spacing: -0.4px; margin: 30px 0 12px; color: var(--text); }
.cn-prose h3 { font-size: 23.4px; font-weight: 800; margin: 24px 0 10px; color: var(--text); }
.cn-prose ul, .cn-prose ol { margin: 0 0 16px; padding-left: 22px; }
.cn-prose li { margin: 0 0 8px; }
.cn-prose a { color: var(--accent); text-decoration: underline; }
.cn-prose strong { color: var(--text); }
.cn-prose blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); }
.cn-prose code { background: var(--chip-bg); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.cn-prose img { border-radius: 14px; }
.cn-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.cn-prose th, .cn-prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.cn-page-head h1 { margin: 0; font-size: clamp(33.8px,4vw,49.4px); font-weight: 800; letter-spacing: -0.8px; color: var(--text); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1040px) {
  .cn-statgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cn-nav, .cn-header-cta { display: none; }
  .cn-burger { display: flex; }
  .cn-symcols { grid-template-columns: 1fr; }
  .cn-privacy { grid-template-columns: 1fr; }
  .cn-statgrid { grid-template-columns: repeat(2, 1fr); }
  .cn-footer-grid { grid-template-columns: 1fr 1fr; }
  .cn-statband { grid-template-columns: repeat(2,1fr); }
  .cn-gen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cn-wrap { padding-left: 16px; padding-right: 16px; }
  .cn-section { padding-top: 36px; padding-bottom: 36px; }
  .cn-hero-inner { padding: 32px 16px 12px; }
  .cn-footer-grid { grid-template-columns: 1fr; }
  .cn-nick-top100 { grid-template-columns: 1fr; }
  .cn-h2 { font-size: 28.6px; }
  .cn-gen-input { font-size: 23.4px; }
}
@media (min-width: 821px) {
  html.cn-menu-open .cn-mobile-nav { display: none; }
}

/* keep chip rows tidy: long copied nicknames truncate instead of breaking layout */
.cn-related .cn-chip { max-width: 100%; }
[data-cn-copies] .cn-chip, [data-cn-recent] .cn-chip { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* post images / figures */
.cn-prose figure { margin: 0 0 20px; }
.cn-prose figcaption { font-size: 16.9px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }
