﻿:root {
  --paper: #f7f5ef; --paper-deep: #eeeae0; --ink: #1e2430; --muted: #70727a;
  --line: #d9d5ca; --blue: #2447d8; --blue-soft: #dfe5ff; --vermilion: #d94132;
  --white: #fffefa; --shadow: 0 18px 50px rgba(38, 36, 30, .09);
  --display: "STKaiti", "KaiTi", "Kaiti SC", "Noto Serif SC", serif;
  --sans: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 176px; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 76% 9%, rgba(36,71,216,.08), transparent 25rem),
    linear-gradient(rgba(30,36,48,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,36,48,.025) 1px, transparent 1px), var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
}
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .7rem 1rem; color: white; background: var(--blue); border-radius: .5rem; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-seal, .footer-seal { display: grid; place-items: center; color: var(--white); background: var(--vermilion); font-family: var(--display); }
.brand-seal { width: 46px; height: 46px; border: 2px solid var(--vermilion); border-radius: 7px 11px 6px 10px; outline: 2px solid var(--paper); outline-offset: -5px; font-size: 27px; transform: rotate(-2deg); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1; letter-spacing: .08em; }
.brand-copy span, .header-note, .eyebrow, .section-heading p, .specimen small { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.header-note { color: var(--muted); }
main, .site-footer { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr); align-items: center; min-height: 500px; padding: 64px 0 52px; }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-weight: 700; }
.hero h1 { max-width: 720px; margin: 0; font-family: var(--display); font-size: clamp(64px,8vw,112px); font-weight: 600; line-height: .9; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 590px; margin: 32px 0 0; color: #535761; font-size: 16px; line-height: 1.9; }
.hero-specimen { position: relative; min-height: 390px; isolation: isolate; }
.specimen { position: absolute; z-index: 2; display: grid; place-items: center; padding: 0; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease; }
.specimen:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 24px 56px rgba(38,36,30,.14); }
.specimen:focus-visible, .emoji-button:focus-visible, .category-link:focus-visible, .text-button:focus-visible, #clear-search:focus-visible, .search-box:focus-within { outline: 3px solid rgba(36,71,216,.28); outline-offset: 3px; }
.specimen-main { inset: 45px auto auto 78px; width: 220px; height: 240px; border-radius: 9px; transform: rotate(-3deg); }
.specimen-main span { font-size: 112px; filter: drop-shadow(0 9px 7px rgba(20,20,20,.13)); }
.specimen-main small { color: var(--muted); }
.specimen-one, .specimen-two, .specimen-three { width: 86px; height: 86px; border-radius: 50%; font-size: 43px; }
.specimen-one { top: 14px; right: 30px; transform: rotate(8deg); }
.specimen-two { right: 0; bottom: 35px; transform: rotate(-7deg); }
.specimen-three { bottom: 0; left: 14px; transform: rotate(5deg); }
.orbit { position: absolute; z-index: 0; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { inset: 10px 18px 10px 20px; }
.orbit-two { inset: 70px 72px 56px 74px; border-style: dashed; }
.tool-dock { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); gap: 10px 28px; padding: 16px 0 12px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; height: 52px; padding: 0 15px; background: var(--white); border: 1px solid #cac6ba; border-radius: 8px; }
.search-box svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.search-box input { min-width: 0; height: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #92949a; }
kbd { padding: 3px 7px; color: var(--muted); background: var(--paper-deep); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font-family: var(--mono); font-size: 10px; }
.search-status { align-self: center; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: right; }
.category-nav { grid-column: 1/-1; display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 3px; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 7px 10px; color: #5c5f68; text-decoration: none; background: transparent; border: 1px solid transparent; border-radius: 999px; font-size: 12px; white-space: nowrap; transition: 150ms ease; }
.category-link:hover, .category-link.is-active { color: var(--blue); background: var(--blue-soft); border-color: #cbd4ff; }
.emoji-library, .recent-section { padding-top: 50px; }
.emoji-section { scroll-margin-top: 155px; padding: 22px 0 58px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading > div:first-child, .compact-heading > div:first-child { display: flex; align-items: center; gap: 14px; }
.section-mark { display: grid; place-items: center; width: 46px; height: 46px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-family: var(--display); font-size: 22px; }
.section-heading p { margin: 0 0 3px; color: var(--muted); }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1; }
.section-count { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.emoji-subgroup, #emoji-heart { scroll-margin-top: 155px; }
.emoji-subgroup + .emoji-subgroup { margin-top: 34px; }
.subgroup-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.subgroup-heading h3 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; }
.subgroup-heading span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(58px,1fr)); gap: 8px; }
.emoji-button { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; overflow: hidden; white-space: nowrap; color: var(--ink); background: rgba(255,254,250,.78); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size: clamp(27px,3vw,34px); line-height: 1; isolation: isolate; transition: transform 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease; }
.emoji-glyph { display: block; max-width: 100%; overflow: hidden; line-height: 1.15; white-space: nowrap; }
.emoji-button--compat .emoji-glyph { max-width: calc(100% - 8px); font-size: .72em; }
.emoji-button--long .emoji-glyph { font-size: .32em; }
.emoji-button::after { position: absolute; right: 5px; bottom: 3px; content: "+"; color: var(--blue); font-family: var(--mono); font-size: 11px; opacity: 0; transform: scale(.5); transition: 130ms ease; }
.emoji-button:hover { z-index: 1; background: var(--white); border-color: #aeb9f0; box-shadow: 0 10px 24px rgba(36,71,216,.12); transform: translateY(-3px) rotate(-1deg); }
.emoji-button:hover::after { opacity: 1; transform: scale(1); }
.emoji-button.is-copied { background: var(--blue-soft); border-color: var(--blue); transform: scale(.92); }
.text-button, #clear-search { padding: 8px 13px; color: var(--blue); background: transparent; border: 1px solid currentColor; border-radius: 999px; cursor: pointer; }
.empty-state { padding: 90px 20px 120px; text-align: center; }
.empty-state > span { font-size: 70px; }
.empty-state h2 { margin: 18px 0 8px; font-family: var(--display); font-size: 34px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 60px 0 38px; color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.footer-seal { width: 44px; height: 44px; border-radius: 4px 8px 5px 7px; font-size: 14px; transform: rotate(2deg); }
.copy-toast { --toast-bg: #f7dce5; --toast-border: #e9bccb; position: fixed; z-index: 60; top: 22px; left: 50%; display: flex; align-items: center; gap: 13px; width: max-content; min-width: 270px; max-width: calc(100vw - 32px); padding: 13px 18px 13px 13px; color: #29282e; background: var(--toast-bg); border: 1px solid var(--toast-border); border-radius: 13px; box-shadow: 0 14px 34px rgba(60,49,54,.16); opacity: 0; pointer-events: none; transform: translate(-50%,-18px) scale(.97); transition: opacity 180ms ease, transform 220ms cubic-bezier(.22,1,.36,1), background-color 180ms ease; }
.copy-toast[data-tone="rose"] { --toast-bg: #f7dce5; --toast-border: #e9bccb; }
.copy-toast[data-tone="peach"] { --toast-bg: #f9dfcf; --toast-border: #ebc3aa; }
.copy-toast[data-tone="butter"] { --toast-bg: #f8edc8; --toast-border: #e8d799; }
.copy-toast[data-tone="mint"] { --toast-bg: #dcefe2; --toast-border: #b9dcc4; }
.copy-toast[data-tone="sky"] { --toast-bg: #dcebf5; --toast-border: #b9d4e5; }
.copy-toast[data-tone="lavender"] { --toast-bg: #e9e0f4; --toast-border: #d2c0e5; }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%,0) scale(1); }
.copy-toast > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.72); border-radius: 9px; font-size: 28px; }
.copy-toast div { display: grid; gap: 2px; }
.copy-toast strong { color: #25242a; }
.copy-toast small { color: #5d5961; }
.back-to-top { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: grid; place-items: center; width: 56px; height: 56px; color: var(--white); text-decoration: none; background: var(--vermilion); border: 1px solid rgba(255,255,255,.45); border-radius: 12px 15px 11px 14px; box-shadow: 0 12px 28px rgba(104,38,31,.24); opacity: 0; pointer-events: none; transform: translateY(14px) rotate(2deg); transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.back-to-top::after { position: absolute; inset: 4px; content: ""; border: 1px solid rgba(255,255,255,.72); border-radius: 9px 12px 8px 11px; pointer-events: none; }
.back-to-top svg { width: 23px; margin-top: 5px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.back-to-top span { margin-top: -8px; font-family: var(--display); font-size: 10px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(2deg); }
.back-to-top:hover { box-shadow: 0 16px 34px rgba(104,38,31,.32); transform: translateY(-3px) rotate(0); }
.back-to-top:focus-visible { outline: 3px solid rgba(36,71,216,.3); outline-offset: 4px; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-specimen { min-height: 330px; margin-top: 30px; }
  .specimen-main { left: 50%; width: 190px; height: 205px; transform: translateX(-50%) rotate(-3deg); }
  .specimen-main:hover { transform: translateX(-50%) translateY(-6px); }
  .tool-dock { grid-template-columns: 1fr auto; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header, main, .site-footer { width: min(100% - 24px,1220px); }
  .header-note, kbd { display: none; }
  .hero { min-height: auto; padding-top: 42px; }
  .hero h1 { font-size: clamp(54px,18vw,78px); }
  .hero-description { margin-top: 24px; font-size: 14px; }
  .hero-specimen { min-height: 290px; }
  .specimen-main { top: 36px; width: 160px; height: 178px; }
  .specimen-main span { font-size: 82px; }
  .specimen-one, .specimen-two, .specimen-three { width: 64px; height: 64px; font-size: 32px; }
  .tool-dock { grid-template-columns: 1fr; padding-top: 10px; }
  .search-status { display: none; }
  .category-nav { grid-column: 1; }
  .emoji-library, .recent-section { padding-top: 32px; }
  .emoji-section { padding-bottom: 42px; }
  .emoji-subgroup + .emoji-subgroup { margin-top: 26px; }
  .subgroup-heading { margin-bottom: 9px; }
  .emoji-grid { grid-template-columns: repeat(6,1fr); gap: 5px; }
  .emoji-button { border-radius: 6px; font-size: clamp(23px,7vw,30px); }
  .section-count { display: none; }
  .copy-toast { top: 12px; right: auto; bottom: auto; left: 50%; width: calc(100vw - 24px); min-width: 0; max-width: calc(100vw - 24px); padding-right: 14px; }
  .back-to-top { right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 10px 13px 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}








