
    :root {
      color-scheme: light dark;
      --bg: #fff9ed;
      --paper: #ffffff;
      --paper-2: #fff2d2;
      --ink: #23211e;
      --muted: #716c64;
      --line: #ddd4c5;
      --accent: #ef5d3c;
      --accent-strong: #ce3f24;
      --accent-soft: #ffe0d5;
      --teal: #087f74;
      --teal-soft: #d9f2ec;
      --yellow: #ffd95b;
      --shadow: 0 12px 32px rgba(62, 43, 21, .10);
      --focus: #126bce;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #171715;
        --paper: #23231f;
        --paper-2: #2f2c24;
        --ink: #faf5eb;
        --muted: #bdb6aa;
        --line: #49463e;
        --accent: #ff7656;
        --accent-strong: #ff9a80;
        --accent-soft: #482b24;
        --teal: #72d8ca;
        --teal-soft: #183d38;
        --yellow: #f0c94c;
        --shadow: 0 12px 32px rgba(0, 0, 0, .28);
        --focus: #75b7ff;
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 0;
      background:
        radial-gradient(circle at 12% 2%, color-mix(in srgb, var(--yellow) 22%, transparent) 0 110px, transparent 111px),
        var(--bg);
      color: var(--ink);
      font-family: "DM Sans", sans-serif;
      line-height: 1.5;
    }
    button, input, select, textarea { font: inherit; }
    button { color: inherit; }
    :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
    [hidden] { display: none !important; }

    .page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
    body.landing-mode .utility-row, body.landing-mode .sample-board { display: none; }
    body.landing-mode .hero { grid-template-columns: 1fr; text-align: center; padding-top: min(6vh, 48px); }
    body.landing-mode .hero-copy { margin-left: auto; margin-right: auto; }
    body.landing-mode .search-wrap { max-width: 820px; margin: 34px auto 0; }
    .utility-row {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
      margin-bottom: 26px;
    }
    .utility-note { color: var(--muted); font-size: .88rem; }
    .mini-button {
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 10px;
      padding: 12px 16px;
      min-height: 44px;
      cursor: pointer;
      font-weight: 700;
    }
    .mini-button:hover { border-color: var(--accent); color: var(--accent-strong); }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
      align-items: end;
      gap: 30px;
      padding: 28px 0 24px;
    }
    h1, h2, h3 { font-family: "Nunito", sans-serif; line-height: 1.07; margin: 0; }
    h1 { font-size: clamp(2.3rem, 6vw, 4.7rem); max-width: 760px; letter-spacing: -.045em; }
    h1 .accent { color: var(--accent-strong); }
    .hero-copy { margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; max-width: 650px; }
    .sample-board {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 28px 9px 28px 9px;
      box-shadow: var(--shadow);
      padding: 18px;
      transform: rotate(1.5deg);
    }
    .sample-board p { margin: 0; }
    .sample-board .faces { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .1em; }
    .sample-board .label { margin-top: 10px; font-weight: 700; color: var(--muted); font-size: .88rem; }

    .search-wrap {
      position: relative;
      background: var(--paper);
      border: 2px solid var(--ink);
      border-radius: 999px;
      box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);
      padding: 8px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 8px;
      margin: 20px 6px 30px 0;
    }
    .search-icon { width: 28px; height: 28px; margin-left: 8px; color: var(--muted); }
    .search-input {
      min-width: 0;
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--ink);
      padding: 14px 4px;
      font-size: 1.08rem;
      outline: 0;
    }
.search-input:focus-visible{outline:3px solid #126bce;outline-offset:2px;}
    .search-input::placeholder { color: var(--muted); opacity: .85; }
    .search-button, .primary-button {
      border: 0;
      border-radius: 12px;
      padding: 13px 18px;
      background: var(--accent);
      color: #fff;
      font-weight: 800;
      cursor: pointer;
    }
    .search-button:hover, .primary-button:hover { background: var(--accent-strong); }

    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 12px;
      margin-bottom: 24px;
    }
    .tab {
      border: 1px solid transparent;
      background: transparent;
      border-radius: 999px;
      padding: 9px 14px;
      font-weight: 700;
      cursor: pointer;
      color: var(--muted);
    }
    .tab:hover { color: var(--ink); background: var(--paper-2); }
    .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }

    .panel { animation: panelIn .18s ease-out; }
    @keyframes panelIn { from { opacity: .55; } to { opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; } }

    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
    .section-head h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
    .section-head p { margin: 5px 0 0; color: var(--muted); }
    .result-count { color: var(--muted); font-weight: 700; font-size: .92rem; white-space: nowrap; }

    .category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
    .category-chip {
      border: 1px solid var(--line);
      background: var(--paper);
      border-radius: 999px;
      padding: 12px 16px;
      min-height: 44px;
      cursor: pointer;
      font-weight: 700;
    }
    .category-chip:hover, .category-chip.active { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }

    .combo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .combo-card {
      min-width: 0;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 17px;
      padding: 15px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      min-height: 102px;
    }
    .combo-card:nth-child(4n + 2) { border-radius: 7px 22px 7px 22px; }
    .combo-card:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 8px 22px rgba(43, 34, 21, .08); }
    .combo-main { min-width: 0; }
    .combo-text { font-size: 1.35rem; line-height: 1.5; overflow-wrap: break-word; word-break: normal; white-space: pre-wrap; color: var(--ink); font-weight: 600; min-height: 2rem; }
    .combo-label { margin-top: 8px; color: var(--muted); font-size: .81rem; font-weight: 700; text-transform: capitalize; }
    .copy-button {
      border: 1px solid var(--line);
      background: var(--paper-2);
      border-radius: 10px;
      padding: 12px 14px; min-height: 44px;
      cursor: pointer;
      font-weight: 800;
      color: var(--ink);
    }
    .copy-button:hover { border-color: var(--teal); color: var(--teal); }
    .copy-button.copied { background: var(--teal); border-color: var(--teal); color: #fff; }
    .report-button {
      border: 1px solid var(--line);
      background: transparent;
      border-radius: 10px;
      padding: 12px 14px; min-height: 44px;
      cursor: pointer;
      font-weight: 700;
      color: var(--muted);
    }
    .report-button:hover { border-color: #d33; color: #d33; }
    .report-button:disabled { opacity: .65; cursor: default; }
    /* Card actions: heart + upvote share one line (two-column action block) */
    .combo-card .card-actions { grid-template-columns: auto auto; align-items: center; }
    .combo-card .card-actions .report-button { grid-column: 1 / -1; }
    @media (max-width: 640px) {
      .combo-card { grid-template-columns: minmax(0, 1fr); }
      .combo-card .card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
    }
    .empty-state { border: 1px dashed var(--line); padding: 32px; text-align: center; border-radius: 16px; color: var(--muted); }
    .load-status {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      min-height: 66px;
      padding: 18px 0 4px;
      color: var(--muted);
      font-size: .9rem;
      font-weight: 700;
      text-align: center;
    }
    .load-more-button {
      border: 1px solid var(--line);
      background: var(--paper);
      color: var(--ink);
      border-radius: 10px;
      padding: 9px 13px;
      cursor: pointer;
      font-weight: 800;
    }
    .load-more-button:hover { border-color: var(--accent); color: var(--accent-strong); }
    .load-sentinel { height: 1px; }

    .name-workbench {
      display: grid;
      grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
      gap: 24px;
      align-items: start;
    }
    .control-card, .tool-card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 22px;
      padding: 22px;
    }
    .control-card { position: sticky; top: 18px; box-shadow: var(--shadow); }
    .field-label { display: block; font-weight: 800; margin: 0 0 7px; }
    .text-field, .select-field, .text-area {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--bg);
      color: var(--ink);
      padding: 12px;
    }
    .text-field:focus, .select-field:focus, .text-area:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 25%, transparent); }
    .form-row { margin-bottom: 16px; }
    .quick-names { display: flex; flex-wrap: wrap; gap: 7px; }
    .quick-name { border: 0; border-radius: 8px; padding: 6px 9px; background: var(--paper-2); cursor: pointer; font-weight: 700; }
    .name-results { display: grid; gap: 10px; }
    .name-result {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
      padding: 15px 16px;
    }
    .name-result:first-child { border-radius: 16px 16px 0 0; }
    .name-result:last-child { border-bottom: 0; border-radius: 0 0 16px 16px; }
    .styled-name { font-size: 1.25rem; overflow-wrap: anywhere; }

    .tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
    .tool-card h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 6px; }
    .tool-card > p { color: var(--muted); margin: 0 0 18px; }
    .tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .secondary-button {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 12px 16px; min-height: 44px;
      background: var(--paper);
      cursor: pointer;
      font-weight: 800;
    }
    .secondary-button:hover { border-color: var(--accent); color: var(--accent-strong); }
    .tool-note { background: var(--teal-soft); color: var(--teal); padding: 16px; border-radius: 7px 20px 7px 20px; font-weight: 600; }

    .secret-workbench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
    .secret-card { min-width: 0; }
    .secret-card h3 { font-size: 1.28rem; margin-bottom: 7px; }
    .secret-card > p { margin: 0 0 18px; color: var(--muted); }
    .secret-card .text-area { min-height: 126px; resize: vertical; }
    .secret-output {
      min-height: 138px !important;
      overflow-wrap: anywhere;
      word-break: break-word;
      font-size: 1.08rem;
      line-height: 1.8;
      background: var(--paper-2);
    }
    .secret-status { min-height: 24px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
    /* secret message: emoji style + shape pickers */
    #emojiStylePick { margin-top: 2px; }
    #customAlphabetWrap { margin-top: 10px; }
    .inline-note.ok-note { color: var(--teal); font-weight: 700; }
    #shapePick { align-items: center; }
    #shapePick .check-row { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
    #shapePick .check-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
    .shape-preview { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: 1.05rem; line-height: 1.4; white-space: pre; overflow-x: auto; margin: 8px 0 0; }
    /* endless "load more" buttons injected into generator panels */
    .endless-more-wrap { text-align: center; margin: 18px 0 4px; }
    .secret-status.error { color: var(--accent-strong); }
    .secret-status.success { color: var(--teal); }
    .security-note { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--teal-soft); color: var(--teal); border-radius: 7px 20px 7px 20px; padding: 16px 18px; }
    .security-note svg { width: 24px; height: 24px; margin-top: 1px; }
    .security-note strong { display: block; margin-bottom: 3px; }
    .security-note p { margin: 0; }
    button:disabled { cursor: not-allowed; opacity: .55; }

    .pixel-board { display: grid; gap: 3px; width: min(100%, 570px); aspect-ratio: 18 / 12; user-select: none; touch-action: manipulation; }
    .dot-cell, .emoji-cell {
      min-width: 0;
      border: 1px solid var(--line);
      background: var(--bg);
      border-radius: 3px;
      padding: 0;
      cursor: crosshair;
    }
    .dot-cell.on { background: var(--ink); border-color: var(--ink); }
    .emoji-cell { display: grid; place-items: center; font-size: clamp(.62rem, 2.1vw, 1rem); overflow: hidden; }
    .emoji-cell.empty::after { content: ""; }
    .palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
    .palette-button { width: 43px; height: 43px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 1.35rem; }
    .palette-button.active { border: 3px solid var(--accent); }

    .upload-zone {
      border: 2px dashed var(--line);
      background: var(--bg);
      padding: 28px 18px;
      border-radius: 16px;
      text-align: center;
    }
    .upload-zone input { max-width: 100%; }
    .converter-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
    .range-row { display: grid; gap: 6px; }
    .range-row input { width: 100%; accent-color: var(--accent); }
    .check-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
    .check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
    .mode-switch { display: flex; gap: 8px; margin: 14px 0 4px; }
    .mode-btn {
      flex: 1; padding: 12px; min-height: 44px; border-radius: 12px; border: 2px solid var(--line);
      background: var(--paper-2); font-weight: 800; cursor: pointer; color: var(--ink);
    }
    .mode-btn.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--paper-2)); }
    .mosaic-controls { margin-top: 12px; display: grid; gap: 10px; }
    .emoji-presets { display: flex; flex-wrap: wrap; gap: 6px; }
    .emoji-presets button {
      font-size: 1.5rem; width: 46px; height: 46px; border-radius: 12px;
      border: 2px solid var(--line); background: var(--paper-2); cursor: pointer;
    }
    .emoji-presets button.selected { border-color: var(--accent); transform: scale(1.1); }
    .custom-emoji-row { display: flex; gap: 8px; }
    .custom-emoji-row .text-field { flex: 1; }
    .mosaic-preview-wrap { margin-top: 12px; text-align: center; }
    #mosaicCanvas { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
    .art-output {
      min-height: 210px;
      margin: 0;
      padding: 16px;
      border-radius: 12px;
      border: 1px solid var(--line);
      overflow: auto;
      background: #111;
      color: #fff;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: clamp(5px, 1.15vw, 10px);
      line-height: .9;
      white-space: pre;
    }

    .report-intro {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
      gap: 18px;
      align-items: start;
      margin-bottom: 22px;
    }
    .report-lead { font-size: 1.08rem; color: var(--muted); margin: 10px 0 0; max-width: 740px; }
    .report-status {
      background: var(--paper-2);
      border-radius: 8px 24px 8px 24px;
      padding: 18px;
    }
    .report-status strong { display: block; margin-bottom: 5px; }
    .report-status p { margin: 0; color: var(--muted); font-size: .92rem; }
    .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .report-card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 17px;
      padding: 21px;
    }
    .report-card.wide { grid-column: 1 / -1; }
    .report-card h3 { font-size: 1.22rem; margin-bottom: 9px; }
    .report-card p { margin: 0; color: var(--muted); }
    .report-list { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
    .report-list li + li { margin-top: 7px; }
    .status-mark {
      display: inline-block;
      margin-bottom: 10px;
      padding: 5px 9px;
      border-radius: 999px;
      background: var(--teal-soft);
      color: var(--teal);
      font-size: .78rem;
      font-weight: 800;
    }
    .status-mark.unverified { background: var(--accent-soft); color: var(--accent-strong); }

    .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
    .how-item { padding: 20px 0; border-top: 3px solid var(--ink); }
    .step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #262117; font-weight: 900; margin-bottom: 12px; }
    .how-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
    .how-item p { margin: 0; color: var(--muted); }

    .toast {
      position: fixed;
      left: 50%;
      bottom: max(18px, env(safe-area-inset-bottom));
      transform: translateX(-50%);
      z-index: 20;
      background: var(--ink);
      color: var(--bg);
      border-radius: 999px;
      padding: 10px 16px;
      box-shadow: var(--shadow);
      font-weight: 800;
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

    @media (max-width: 840px) {
      .hero { grid-template-columns: 1fr; }
      .sample-board { width: min(360px, 88%); transform: rotate(-1deg); }
      .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .name-workbench, .tool-layout, .secret-workbench { grid-template-columns: 1fr; }
      .security-note { grid-column: auto; }
      .control-card { position: static; }
      .tool-note { order: -1; }
    }
    @media (max-width: 570px) {
      .page-shell { width: min(100% - 22px, 1180px); padding-top: 16px; }
      .utility-row { margin-bottom: 10px; }
      .utility-note { display: none; }
      .hero { padding-top: 14px; gap: 18px; }
      body.landing-mode .hero { padding-top: 5vh; }
      h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
      .search-wrap { grid-template-columns: auto 1fr; box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); }
      .search-button { grid-column: 1 / -1; width: 100%; }
      .combo-grid { grid-template-columns: 1fr; }
      .combo-card { min-height: 88px; }
      .tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
      .tabs::-webkit-scrollbar { display: none; }
      .tabs .tab { font-size: .95rem; padding: 12px 18px; min-height: 44px; flex: 0 0 auto; }
      .tab { border-radius: 10px; padding: 10px 8px; font-size: .89rem; }
      .section-head { align-items: start; flex-direction: column; gap: 4px; }
      .converter-controls { grid-template-columns: 1fr; }
      .report-intro, .report-grid { grid-template-columns: 1fr; }
      .report-card.wide { grid-column: auto; }
      .how-grid { grid-template-columns: 1fr; }
      .pixel-board { gap: 2px; }
      .emoji-cell { font-size: 3vw; }
    }

    /* 2026 visual refresh */
    :root {
      --bg: #f4f4ee;
      --paper: #ffffff;
      --paper-2: #ecece4;
      --ink: #171816;
      --muted: #64675f;
      --line: #d6d8cf;
      --accent: #ff5436;
      --accent-strong: #d9361e;
      --accent-soft: #ffe4dc;
      --teal: #075f57;
      --teal-soft: #d9f1eb;
      --yellow: #f4cb45;
      --blue: #1f5eea;
      --blue-soft: #e3eaff;
      --shadow: 0 18px 50px rgba(24, 30, 24, .11);
      --focus: #135eea;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #121411;
        --paper: #1d201c;
        --paper-2: #282c26;
        --ink: #f6f7f1;
        --muted: #aeb4a8;
        --line: #393e37;
        --accent: #ff6b4e;
        --accent-strong: #ff967e;
        --accent-soft: #4b2820;
        --teal: #7bddd0;
        --teal-soft: #173b36;
        --yellow: #e8c956;
        --blue: #7aa1ff;
        --blue-soft: #202d53;
        --shadow: 0 18px 50px rgba(0, 0, 0, .28);
        --focus: #80a8ff;
      }
    }

    body {
      background: var(--bg);
      background-image:
        linear-gradient(color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px);
      background-size: 38px 38px;
      background-position: center top;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), var(--bg) 45%, color-mix(in srgb, var(--bg) 92%, transparent));
      z-index: -1;
    }
    .page-shell { width: min(1200px, calc(100% - 44px)); padding: 20px 0 64px; }
    .utility-row { justify-content: space-between; margin-bottom: 14px; min-height: 42px; }
    body.landing-mode .utility-row { display: flex; }
    .library-count {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: .86rem;
    }
    .library-count::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23a66f; box-shadow: 0 0 0 4px color-mix(in srgb, #23a66f 16%, transparent); }
    .library-count strong { color: var(--ink); }
    .mini-button { border-color: var(--ink); border-radius: 999px; padding: 8px 14px; background: var(--paper); }
    .mini-button span { display: inline-block; margin-left: 3px; }

    .hero { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); align-items: center; gap: 68px; padding: 42px 0 26px; }
    body.landing-mode .hero { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); text-align: left; padding-top: 58px; }
    body.landing-mode .hero-copy { margin-left: 0; margin-right: 0; }
    body.landing-mode .sample-board { display: block; }
    .hero-kicker {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--ink);
      border-radius: 999px;
      background: var(--yellow);
      color: #242217;
      padding: 7px 12px;
      margin-bottom: 18px;
      font-size: .78rem;
      font-weight: 900;
      letter-spacing: .025em;
    }
    h1 { font-size: clamp(3.2rem, 7.1vw, 6.65rem); line-height: .89; max-width: 800px; letter-spacing: -.065em; }
    h1 .accent { color: var(--accent); }
    .hero-copy { max-width: 610px; margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
    .sample-board {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--ink);
      border-radius: 26px;
      padding: 21px;
      transform: rotate(2.2deg);
      box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);
      background: var(--paper);
    }
    .sample-board::after {
      content: "✦";
      position: absolute;
      right: -8px;
      bottom: -32px;
      color: var(--accent-soft);
      font-size: 9rem;
      line-height: 1;
      z-index: 0;
    }
    .sample-board > * { position: relative; z-index: 1; }
    .preview-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 800; }
    .preview-dot { width: 9px; height: 9px; border-radius: 50%; background: #25aa72; }
    .sample-board .faces { padding-top: 24px; font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: .01em; }
    .preview-line { margin-top: 7px !important; color: var(--muted); }
    .preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
    .preview-tags span { background: var(--paper-2); border-radius: 999px; padding: 6px 9px; font-size: .73rem; font-weight: 800; }

    .search-wrap {
      max-width: 1040px;
      margin: 26px 0 22px;
      border: 1.5px solid var(--ink);
      border-radius: 16px;
      box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);
      padding: 7px;
    }
    body.landing-mode .search-wrap { max-width: 1040px; margin: 32px 0 24px; }
    .search-input { font-size: 1.05rem; padding: 15px 6px; }
    .search-button, .primary-button { background: var(--accent); border-radius: 10px; padding: 14px 20px; }
    .search-button span { margin-left: 8px; }

    .quick-launch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 44px; }
    body:not(.landing-mode) .quick-launch { display: none; }
    .quick-tool {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      min-width: 0;
      text-align: left;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--paper);
      color: var(--ink);
      padding: 14px;
      cursor: pointer;
      transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }
    .quick-tool:hover { border-color: var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); transform: translate(-2px, -2px); }
    .quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-family: "Nunito", sans-serif; font-weight: 900; font-size: 1.05rem; }
    .quick-tool:nth-child(2) .quick-icon { background: var(--accent-soft); color: var(--accent-strong); }
    .quick-tool-secret .quick-icon { background: var(--teal-soft); color: var(--teal); }
    .quick-tool strong, .quick-tool small { display: block; }
    .quick-tool strong { font-size: .96rem; }
    .quick-tool small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
    .quick-arrow { color: var(--muted); font-weight: 900; }

    body:not(.landing-mode) .hero { grid-template-columns: 1fr auto; padding: 20px 0 12px; gap: 28px; }
    body:not(.landing-mode) .hero-kicker, body:not(.landing-mode) .sample-board, body:not(.landing-mode) .hero-copy { display: none; }
    body:not(.landing-mode) h1 { font-size: clamp(2.35rem, 5vw, 4rem); line-height: .95; }
    body:not(.landing-mode) .search-wrap { margin-top: 12px; }

    .tabs {
      position: sticky;
      top: 0;
      z-index: 5;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 10px 0;
      margin: 0 0 30px;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
    }
    .tabs .tab { white-space: nowrap; flex: 0 0 auto; }

    .tab { border-radius: 9px; padding: 9px 12px; font-size: .9rem; }
    .tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
    .section-head { margin-bottom: 18px; }
    .section-head h2, .section-head h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.035em; }
    body.route-mode .hero, body.route-mode > .hero { display: none; }
    body.route-mode .search-wrap { margin-top: 18px; }
    .category-list { margin-bottom: 24px; }
    .category-chip { border-radius: 9px; padding: 12px 16px; min-height: 44px; }
    .category-chip:hover, .category-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

    .combo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .combo-card, .combo-card:nth-child(4n + 2) { border-radius: 14px; min-height: 112px; padding: 16px; }
    .combo-card:hover { border-color: var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); }
    .combo-text { font-size: 1.42rem; }
    .combo-label { text-transform: none; }
    .copy-button { background: var(--paper-2); border-radius: 8px; }
    .load-status { margin-top: 8px; }
    .load-more-button { border-color: var(--ink); border-radius: 9px; padding: 11px 16px; }

    .control-card, .tool-card { border-radius: 16px; }
    .control-card { box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); border-color: var(--ink); }
    .text-field, .select-field, .text-area { border-radius: 9px; }
    .name-result { border: 1px solid var(--line); border-bottom: 0; }
    .name-result:first-child { border-radius: 14px 14px 0 0; }
    .name-result:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 14px 14px; }
    .security-note, .tool-note { border-radius: 12px; }
    .how-grid { margin-top: 48px; }
    .how-item { border-top-width: 2px; }

    @media (max-width: 880px) {
      .hero, body.landing-mode .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 28px; }
      .sample-board { width: min(520px, 88%); }
      .quick-launch { grid-template-columns: 1fr; }
      .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 570px) {
      .page-shell { width: min(100% - 24px, 1200px); padding-top: 9px; }
      .utility-row { margin-bottom: 4px; }
      .library-count { font-size: .76rem; }
      .mini-button { padding: 7px 11px; font-size: .8rem; }
      .hero, body.landing-mode .hero { padding-top: 22px; gap: 22px; }
      h1, body:not(.landing-mode) h1 { font-size: clamp(2.8rem, 16vw, 4.6rem); }
      .hero-copy { font-size: .98rem; margin-top: 16px; }
      .sample-board { width: calc(100% - 10px); padding: 17px; box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); }
      .sample-board .faces { font-size: 2.15rem; }
      .search-wrap, body.landing-mode .search-wrap { margin-top: 28px; grid-template-columns: auto 1fr; box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); }
      .search-button { grid-column: 1 / -1; width: 100%; }
      .quick-launch { margin-top: 24px; }
      .tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
      .tabs .tab { min-height: 44px; padding: 12px 18px; flex: 0 0 auto; }
      .combo-grid { grid-template-columns: 1fr; }
      .combo-card { min-height: 96px; }
    }

    /* Landing keeps the hero focused; quick-launch cards and the combo library show right below it. */
    body.landing-mode .utility-row { display: flex; }
    body.landing-mode .sample-board { display: none; }
    body.landing-mode .hero { grid-template-columns: 1fr; text-align: center; padding-top: min(6vh, 48px); }
    body.landing-mode .hero-message { max-width: 860px; margin: 0 auto; }
    body.landing-mode .hero-copy { margin-left: auto; margin-right: auto; }
    body.landing-mode .search-wrap { max-width: 840px; margin-left: auto; margin-right: auto; }
    body:not(.landing-mode) .quick-launch { display: none; }
    @media (max-width: 570px) {
      body.landing-mode .hero { padding-top: 11vh; }
    }

    /* Discovery, gaming and collection tools */
    .topic-directory { margin: 0 0 32px; }
    .topic-directory h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); letter-spacing: -.035em; }
    .topic-directory > p { max-width: 720px; color: var(--muted); margin: 7px 0 17px; }
    .topic-links { display: flex; flex-wrap: wrap; gap: 8px; }
    .topic-link {
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper);
      color: var(--ink);
      padding: 9px 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .topic-link:hover { border-color: var(--blue); color: var(--blue); }
    .favorite-button {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
      color: var(--muted);
      cursor: pointer;
      font-size: 1.08rem;
    }
    .favorite-button:hover, .favorite-button.saved { border-color: #e0245e; color: #e0245e; background: #ffe0eb; }
    .card-actions { display: grid; gap: 14px; }
    .generator-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 22px; align-items: start; }
    .generator-results { display: grid; gap: 10px; }
    .generator-result {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 16px;
      min-height: 76px;
    }
    .generator-result-text { font-size: 1.25rem; overflow-wrap: anywhere; }
    .inline-note { color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
    .kit-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .kit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .kit-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
    .kit-card h3 { font-size: 1.22rem; margin-bottom: 5px; }
    .kit-card > p { margin: 0 0 15px; color: var(--muted); }
    .kit-preview { margin: 0; padding: 15px; border-radius: 9px; background: var(--paper-2); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font: 600 .93rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    .kit-actions { margin-top: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
    .collection-empty { padding: 36px 20px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }
    .collection-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 16px; }
    .collection-tools p { margin: 0; color: var(--muted); }
    .seo-pages { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 34px; }
    .seo-pages > h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.04em; }
    .seo-pages > p { color: var(--muted); max-width: 760px; }
    .seo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
    .seo-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 17px; }
    .seo-card h3 { font-size: 1.08rem; }
    .seo-card p { margin: 7px 0 12px; color: var(--muted); font-size: .9rem; }
    .seo-card button { border: 0; background: transparent; color: var(--blue); padding: 0; cursor: pointer; font-weight: 800; }
    @media (max-width: 840px) {
      .generator-layout, .kit-grid { grid-template-columns: 1fr; }
      .seo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 570px) {
      .seo-grid { grid-template-columns: 1fr; }
      .collection-tools { align-items: flex-start; flex-direction: column; }
      .generator-result { grid-template-columns: 1fr; }
      .generator-result .card-actions { grid-template-columns: repeat(2, auto); justify-content: start; }
    }
 
/* Competitor-beating tools pack */
[data-theme="light"] { color-scheme: light; --bg:#f4f4ee; --paper:#fff; --paper-2:#ecece4; --ink:#171816; --muted:#64675f; --line:#d6d8cf; --accent:#ff5436; --accent-strong:#d9361e; --accent-soft:#ffe4dc; --teal:#075f57; --teal-soft:#d9f1eb; --yellow:#f4cb45; --blue:#1f5eea; --blue-soft:#e3eaff; --shadow:0 18px 50px rgba(24,30,24,.11); --focus:#135eea;}
[data-theme="dark"] { color-scheme: dark; --bg:#121411; --paper:#1d201c; --paper-2:#282c26; --ink:#f6f7f1; --muted:#aeb4a8; --line:#393e37; --accent:#ff6b4e; --accent-strong:#ff967e; --accent-soft:#4b2820; --teal:#7bddd0; --teal-soft:#173b36; --yellow:#e8c956; --blue:#7aa1ff; --blue-soft:#202d53; --shadow:0 18px 50px rgba(0,0,0,.28); --focus:#80a8ff;}
.theme-toggle { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--ink); border-radius:50%; background:var(--paper); cursor:pointer; font-size:1.05rem;}
body.landing-mode.utility-row { display:flex; justify-content:flex-end;}
body.landing-mode.utility-row >.library-count, body.landing-mode.utility-actions.mini-button { display:none;}
.feature-intro { max-width:760px; color:var(--muted); margin:7px 0 22px;}
.live-input-card { background:var(--paper); border:1px solid var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); border-radius:16px; padding:18px; margin-bottom:24px;}
.input-meta,.summary-bar { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; margin-top:10px; color:var(--muted); font-size:.88rem; font-weight:700;}
.style-list { display:grid; gap:9px;}
.style-row { display:grid; grid-template-columns:170px minmax(0,1fr) auto; gap:14px; align-items:center; background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:13px 14px;}
.style-label { color:var(--muted); font-size:.82rem; font-weight:800;}
.style-output { min-width:0; font-size:1.22rem; overflow-wrap:anywhere; cursor:pointer;}
.symbol-tabs,.chip-row { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 18px;}
.symbol-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:9px;}
.symbol-tile { min-height:72px; display:grid; place-items:center; gap:2px; border:1px solid var(--line); border-radius:10px; background:var(--paper); cursor:pointer; padding:8px; font-size:1.65rem;}
.symbol-tile small { font-size:.66rem; color:var(--muted); line-height:1.2; text-align:center;}
.symbol-tile:hover { border-color:var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);}
.tone-row { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0;}
.tone-btn { min-width:46px; min-height:46px; border:1px solid var(--line); border-radius:10px; background:var(--paper); cursor:pointer; font-size:1.25rem;}
.tone-btn.active { border-color:var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);}
.daily-grid,.bio-grid,.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;}
.daily-card,.bio-card,.guide-card,.frame-card,.render-card { min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:13px; padding:16px;}
.daily-card strong,.bio-card strong { display:block; color:var(--muted); font-size:.76rem; margin-bottom:9px;}
.daily-copy,.bio-text { min-height:54px; font-size:1.06rem; overflow-wrap:anywhere; white-space:pre-wrap;}
.kaomoji-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:22px; align-items:start;}
.kaomoji-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px;}
.kaomoji-card { background:var(--paper); border:1px solid var(--line); border-radius:11px; padding:12px; min-width:0;}
.kaomoji-text { font-size:1.06rem; overflow-wrap:anywhere; min-height:34px;}
.mini-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px;}
.mini-actions button { min-height:36px;}
.decorator { position:sticky; top:78px;}
.decorator-preview,.face-preview { min-height:112px; display:grid; place-items:center; text-align:center; background:var(--paper-2); border-radius:12px; padding:18px; font-size:clamp(1.25rem,3vw,2rem); overflow-wrap:anywhere;}
.frame-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:530px; overflow:auto; padding:2px;}
.frame-card { cursor:pointer; text-align:left; font-size:.83rem;}
.frame-card.active { border-color:var(--accent); background:var(--accent-soft);}
.bio-workbench { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:22px; align-items:start;}
.counter-card { position:sticky; top:78px;}
.counter-value[data-state="warn"] { color:#a76600;}
.counter-value[data-state="over"] { color:var(--accent-strong);}
.part-group { border:0; border-top:1px solid var(--line); margin:18px 0 0; padding:14px 0 0;}
.part-group legend { font-weight:900; padding-right:10px;}
.part-chip { min-height:44px; min-width:50px; padding:8px 12px; border:1px solid var(--line); border-radius:9px; background:var(--paper); cursor:pointer; font-size:1.15rem;}
.part-chip[aria-pressed="true"] { border-color:var(--ink); background:var(--yellow); color:#242217; box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10);}
.render-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin-top:18px;}
.render-card { text-align:center; padding:12px 7px;}
.render-glyph { font-size:2rem; min-height:50px; display:grid; place-items:center;}
.render-code { font-size:.72rem; font-weight:800;}
.verdict { display:inline-block; margin-top:7px; padding:4px 6px; border-radius:999px; font-size:.66rem; font-weight:900; background:var(--teal-soft); color:var(--teal);}
.verdict.risky { background:var(--accent-soft); color:var(--accent-strong);}
details.guide-card { padding:0;}
details.guide-card summary { cursor:pointer; padding:18px; font-family:"Nunito",sans-serif; font-size:1.08rem; font-weight:900;}
.guide-body { padding:0 18px 18px; color:var(--muted);}
.guide-body h4 { color:var(--ink); margin:18px 0 4px;}
.faq-list { display:grid; gap:8px; margin-top:20px;}
.faq-list details { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:13px 15px;}
.faq-list summary { cursor:pointer; font-weight:800;}
.faq-list p { color:var(--muted); margin:10px 0 0;}
@media (max-width:900px) {.symbol-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.daily-grid,.bio-grid,.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kaomoji-layout,.bio-workbench{grid-template-columns:1fr}.decorator,.counter-card{position:static}.render-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:570px) {.style-row{grid-template-columns:1fr auto}.style-label{grid-column:1/-1}.symbol-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.chip-row{flex-wrap:wrap;overflow:visible}.symbol-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-grid,.bio-grid,.guide-grid{grid-template-columns:1fr}.kaomoji-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.render-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.frame-grid{max-height:none}.tab{font-size:.95rem;min-height:44px;padding:12px 18px}.tabs{display:flex;overflow-x:auto;scrollbar-width:none}}
.site-map-group + .site-map-group { margin-top: 34px; }
.site-map-group h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-bottom: 12px; }
.site-map-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.site-map-link { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; min-width:0; padding:14px 15px; border:1px solid var(--line); border-radius:11px; background:var(--paper); color:var(--ink); text-decoration:none; font-weight:800; }
.site-map-link small { display:block; margin-top:3px; color:var(--muted); font-weight:500; line-height:1.35; }
.site-map-link:hover { border-color:var(--ink); box-shadow: 0 1px 2px rgba(35,33,30,.06), 0 12px 28px rgba(35,33,30,.10); }
.site-map-link span:last-child { color:var(--blue); }
@media (max-width:840px) {.site-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:570px) {.site-map-grid{grid-template-columns:1fr}}
 
/* multi-page additions */
a.tab { text-decoration: none; display: inline-block; }
.site-header { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 9px; font-family: Nunito, sans-serif; font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand-svg { flex-shrink: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.landing-brand-bar { display: flex; justify-content: center; margin-bottom: 14px; }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; font-family: Nunito, sans-serif; font-weight: 900; font-size: 25px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.landing-brand .accent { color: var(--accent); }
.site-header .brand .accent { color: var(--accent); }
.site-header .site-search { flex: 1 1 280px; margin: 0; }
.site-footer { margin-top: 56px; border-top: 3px solid var(--accent); padding: 48px 0 56px; color: var(--ink); font-size: 16px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.site-footer .foot-brand { text-align: center; margin-bottom: 32px; }
.site-footer .foot-brand .brand-name { font-size: 1.8rem; font-weight: 900; background: linear-gradient(135deg, #ef5d3c, #ff8a5c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-footer .foot-grid { width: min(1180px, calc(100% - 32px)); margin: 0 auto 22px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer > p { width: min(1180px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.site-footer .foot-col { min-width: 180px; margin-bottom: 16px; }
.site-footer .foot-col strong { display: block; margin-bottom: 12px; color: var(--accent); font-size: 1.1rem; font-weight: 800; }
.site-footer .foot-col a { display: block; color: var(--ink); text-decoration: none; padding: 8px 0; font-size: 1rem; }
.site-footer .foot-col a:hover { color: var(--accent); }
.noscript-seo { margin-top: 24px; }

    /* Share button + language switcher + share modal (added 2026-10-07) */
    .share-button {
      border: 1px solid var(--line);
      background: var(--paper-2);
      border-radius: 10px;
      padding: 12px 14px; min-height: 44px;
      cursor: pointer;
      font-weight: 800;
      color: var(--ink);
    }
    .share-button:hover { border-color: var(--accent); color: var(--accent-strong); }
    .lang-switcher { font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
    .lang-switcher a { color: var(--accent-strong); text-decoration: none; }
    .lang-switcher a:hover { text-decoration: underline; }
    .share-modal-overlay {
      position: fixed; inset: 0; z-index: 300;
      background: rgba(20, 14, 8, .55);
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
    }
    .share-modal-overlay[hidden] { display: none; }
    .share-modal {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 22px;
      max-width: 430px; width: 100%;
      text-align: center;
      max-height: 92vh; overflow-y: auto;
    }
    .share-modal h3 { margin: 0 0 14px; }
    .share-preview {
      width: 100%; max-width: 290px; height: auto;
      border-radius: 12px;
      border: 1px solid var(--line);
    }
    .share-modal-actions {
      display: flex; gap: 10px; justify-content: center;
      margin-top: 16px; flex-wrap: wrap;
    }

/* ---- gap-fix styles: tags, voting, NEW badges ---- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chip {
  font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 999px;
  background: var(--chip-bg, #f1f0ff); color: var(--chip-fg, #5b5bd6);
  border: 1px solid var(--chip-border, #e2e1fb); white-space: nowrap;
}
.topic-tags { margin: 4px 0 2px; }
.new-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: linear-gradient(135deg, #ff6846, #ff2e7e);
  border-radius: 6px; padding: 3px 7px; margin-right: 6px; vertical-align: 2px;
  animation: newPulse 2s ease-in-out infinite;
}
@keyframes newPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.vote-holder { display: inline-block; }
.vote-button {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700; padding: 10px 16px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--chip-border, #e2e1fb); background: var(--chip-bg, #f1f0ff);
  color: var(--chip-fg, #5b5bd6); cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.vote-button:hover { transform: translateY(-1px); }
.vote-button:disabled { opacity: .6; cursor: default; transform: none; }
.vote-button.voted { background: linear-gradient(135deg, #ff6846, #ff2e7e); color: #fff; border-color: transparent; }
.vote-button .vote-count { font-variant-numeric: tabular-nums; }
.topic-vote {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px;
  background: var(--card-bg, #fff); border: 1px dashed var(--chip-border, #e2e1fb);
  font-size: 13px; font-weight: 600; color: var(--muted, #6b7280);
}
.vote-page { font-size: 13px; padding: 8px 14px; }
.topic-video { margin: 14px 0 4px; }
.topic-video:empty { display: none; }
.topic-video-player {
  width: 100%; max-width: 560px; aspect-ratio: 16 / 9; display: block;
  border-radius: 14px; border: 1px solid var(--line, #e2e1fb);
  background: #0b0b14; object-fit: cover;
}
.topic-related { margin: 18px 0 4px; }
.topic-related:empty { display: none; }
.related-title { font-size: 16px; margin: 0 0 10px; }
.related-link { text-decoration: none; }
.related-link:hover { border-color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .tag-chip { --chip-bg: #26263a; --chip-fg: #b9b8ff; --chip-border: #3a3a58; }
  .vote-button { --chip-bg: #26263a; --chip-fg: #b9b8ff; --chip-border: #3a3a58; }
  .topic-vote { --card-bg: #1c1c2b; --chip-border: #3a3a58; --muted: #a1a1b8; }
}

/* ---- floating hero emojis (visual delight) ---- */
.hero { position: relative; overflow: hidden; }
.hero-float { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-message, .hero .search-wrap { position: relative; z-index: 1; }
.float-emoji { position: absolute; bottom: -60px; opacity: 0; animation: floatUp linear infinite; user-select: none; }
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: .55; }
  85% { opacity: .45; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-float { display: none; } }

    .meanings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
    .meaning-card{display:flex;flex-direction:column;align-items:center;padding:16px 8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);text-decoration:none;color:var(--ink);transition:transform .15s,border-color .15s}
    .meaning-card:hover{transform:translateY(-3px);border-color:#0d9488;box-shadow:0 8px 20px rgba(118,75,162,.15)}

.chip{display:inline-flex;align-items:center;gap:6px;padding: 12px 20px; min-height: 44px;border:2px solid var(--line);border-radius:99px;background:var(--bg);color:var(--ink);cursor:pointer;font-size:.95rem;font-weight:600;transition:all .15s}
.chip:hover{border-color: #ef5d3c;transform:translateY(-1px)}
.chip.active { background: linear-gradient(135deg,#ef5d3c,#ff8a5c);color:#fff;border-color:#764ba2;box-shadow:0 4px 12px rgba(118,75,162,.3)}

.btn-secondary{display:inline-flex;align-items:center;gap:6px;padding:12px 18px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);cursor:pointer;font-size:.9rem;font-weight:600;transition:all .15s}
.btn-secondary:hover{border-color:var(--accent);color:var(--accent-strong);transform:translateY(-1px)}
.muted{color:var(--muted)}

html, body { overflow-x: hidden; }
@media (max-width:570px) {
  .ep-nav { top: 0 !important; }
  .copy-button, .share-button { padding: 12px 14px; min-height: 44px; }
}

.site-footer .foot-col a { padding: 10px 4px; display: block; min-height: 44px; font-size: 1.05rem; line-height: 1.6; }
.site-footer[role="contentinfo"] { /* a11y landmark */ }
@media (max-width:570px) {
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .site-footer .foot-col a { padding: 12px 0; font-size: 1rem; }
}


/* === Emoji Picker styles (moved from inline) === */

.ep-hero{text-align:center;padding:24px 0 8px}
.ep-hero h1{font-size:2.2rem;margin-bottom:8px}
.ep-search{width:100%;max-width:600px;display:block;margin:20px auto;padding:14px 24px;border:2px solid var(--line);border-radius:99px;font-size:1.1rem;box-sizing:border-box}
.ep-search:focus{outline:none;border-color:#ef5d3c}
.ep-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;justify-content:center;position:sticky;top:55px;z-index:5;background:var(--bg);padding:10px 0}
.ep-nav a{padding:8px 16px;border:1px solid var(--line);border-radius:99px;text-decoration:none;color:var(--ink);font-size:.88rem;font-weight:500}
.ep-nav a:hover{background:var(--ink);color:var(--bg)}
.ep-cat{margin:36px 0}
.ep-cat h2{font-size:1.5rem;margin-bottom:14px;padding-bottom:8px;border-bottom:2px solid var(--line)}
.ep-count{font-size:.85rem;opacity:.55;font-weight:normal}
.ep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:8px}
.ep-cell{font-size:2rem;padding:12px 4px;background:var(--bg);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:all .15s}
.ep-grid-named{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}
.ep-grid-text{display:flex;flex-wrap:wrap;gap:8px}
.ep-grid-text .ep-cell{font-size:1.05rem;white-space:nowrap;padding:12px 14px;flex:0 1 auto;line-height:1.35;min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.ep-emoji{font-size:2.2rem;display:block}
.ep-name{font-size:.68rem;display:block;margin-top:4px;opacity:.7;line-height:1.2}
.ep-cell:hover{transform:scale(1.18);border-color:#ef5d3c;box-shadow:0 4px 12px rgba(239,93,60,.25)}
.ep-cell.ok{background:#4caf50;transform:scale(1.18)}
/* Detail modal */
.ep-modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);z-index:1000;align-items:center;justify-content:center;padding:20px}
.ep-modal.open{display:flex}
.ep-modal-box{background:var(--bg);border-radius:20px;padding:32px;max-width:420px;width:100%;text-align:center;position:relative;animation:pop .2s}
@keyframes pop{from{transform:scale(.9);opacity:0}}
.ep-modal-emoji{font-size:5rem;margin-bottom:12px}
.ep-modal-name{font-size:1.2rem;font-weight:bold;margin-bottom:4px;text-transform:capitalize}
.ep-modal-code{font-size:.8rem;opacity:.6;margin-bottom:16px;font-family:monospace}
.ep-modal-copy{background:#ef5d3c;color:#fff;border:0;border-radius:99px;padding:14px 40px;font-size:1.05rem;font-weight:bold;cursor:pointer;width:100%;margin-bottom:8px}
.ep-modal-copy:hover{background:#5a3a8a}
.ep-modal-close{position:absolute;top:12px;right:16px;background:none;border:0;font-size:1.5rem;cursor:pointer;opacity:.6}
.ep-related{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:16px}
.ep-related button{font-size:1.6rem;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--bg);cursor:pointer}
.ep-toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#222;color:#fff;padding:12px 28px;border-radius:99px;font-size:.95rem;opacity:0;transition:opacity .2s;z-index:1100;pointer-events:none}
.ep-toast.show{opacity:1}
.ep-faq{margin:40px 0;padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:16px}
.ep-faq h2{margin-bottom:12px}
.ep-faq details{margin:8px 0}
.ep-faq summary{cursor:pointer;font-weight:600;padding:8px 0}
@media (max-width:570px){.ep-grid{grid-template-columns:repeat(auto-fill,minmax(50px,1fr));gap:6px}.ep-cell{font-size:1.7rem;padding:9px 2px}.ep-hero h1{font-size:1.7rem}}

.breadcrumb{font-size:.85rem;padding:10px 0;color:var(--muted,#716c64)}.breadcrumb a{color:#ef5d3c;text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.breadcrumb span[aria-hidden]{margin:0 6px;opacity:.6}



/* ========================================================
   EMOJI TROVE: 6 VIRAL COMPETITOR FEATURES (2026-11-24)
   ======================================================== */

/* 1. Clickable Tag Pills on Combo Cards */
.tag-chip.clickable-tag {
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.tag-chip.clickable-tag:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* 3. Card Action: + Tray Button & Bio Preview Button */
.tray-add-button, .bio-preview-button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 40px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.tray-add-button:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft, rgba(0,180,160,0.08));
}
.tray-add-button.added {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.bio-preview-button:hover {
  border-color: #e1306c;
  color: #e1306c;
  background: rgba(225,48,108,0.08);
}

/* 4. Floating Copy Tray Dock (Bottom of Screen) */
#etCopyTrayDock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  font-family: inherit;
}
.tray-bubble-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff0a6c;
  color: #fff;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 10px 30px rgba(255, 10, 108, 0.45);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tray-bubble-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(255, 10, 108, 0.6);
}
.tray-badge-count {
  background: #fff;
  color: #ff0a6c;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 900;
}
.mini-button.tray-nav-btn {
  background: #ff0a6c !important;
  color: #fff !important;
  border-color: #ff0a6c !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.mini-button.tray-nav-btn:hover {
  background: #e0085f !important;
}
.tray-popup-card {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: trayPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tray-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px 0;
  border-radius: 8px;
}
.tray-item-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--ink);
  gap: 8px;
}
.tray-item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  flex: 1;
}
.tray-item-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.tray-item-del:hover {
  color: #ef4444;
  font-weight: bold;
}
@keyframes trayPop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.tray-header h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.tray-textarea {
  width: 100%;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px;
  resize: vertical;
  line-height: 1.4;
  box-sizing: border-box;
}
.tray-textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.tray-limits-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 2px;
}
.limit-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.limit-tag.ok { color: #10b981; }
.limit-tag.over { color: #ef4444; font-weight: 800; }
.tray-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tray-copy-all-btn {
  flex: 1;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tray-copy-all-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0,180,160,0.3);
}
.tray-preview-btn {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.tray-clear-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.tray-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* 5. Live Bio Preview Modal (Instagram & TikTok Mockups) */
.bio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.bio-modal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  animation: popModal 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popModal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.bio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.bio-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.bio-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.bio-modal-close:hover { color: var(--ink); }
.bio-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bio-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.bio-tab-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  transition: all 0.15s ease;
}
.bio-tab-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.bio-mockup-frame {
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.bio-mockup-frame.light-theme-mockup {
  background: #fff;
  color: #000;
  border: 1px solid #dbdbdb;
}
.bio-mock-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.bio-mock-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.bio-mock-username {
  font-weight: 700;
  font-size: 0.95rem;
}
.bio-mock-handle {
  font-size: 0.8rem;
  opacity: 0.6;
}
.bio-mock-text {
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.bio-stats-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.bio-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bio-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.bio-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
