@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(../fonts/pj.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
--bg:#faf9ff;--surface:#fff;--surface-2:#f6f4ff;--text:#15132b;--text-2:#2f2c48;--muted:#5f5c75;--muted-2:#6b6880;
--border:#ece9f6;--border-2:#e3ddfb;--primary:#6d4aff;--primary-ink:#5b3df5;--primary-soft:#ece7ff;--primary-2:#c04dff;
--green:#16a34a;--red:#e11d48;--footer:#0f0e24;
--hero:radial-gradient(120% 140% at 0% 0%,#d9f0ff 0%,transparent 45%),radial-gradient(90% 120% at 100% 0%,#f6dcff 0%,transparent 50%),linear-gradient(120deg,#eaf2ff,#f4e9ff 60%,#fde7f5);
--soft-grad:linear-gradient(120deg,#f1f6ff,#f7f0ff);--header-bg:rgba(250,249,255,.86);
--container:1240px;--gutter:clamp(12px,3vw,32px);
--r-sm:10px;--r:16px;--r-lg:20px;--r-xl:clamp(18px,2.5vw,28px);
--shadow:0 10px 28px rgba(92,64,200,.12);
--fs-p:17px;--fs-sm:14px;--fs-xs:13px;--fs-h2:clamp(22px,2.2vw,26px);
--font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans JP","Hiragino Sans",sans-serif;
}
[data-theme=dark]{
--bg:#0f0e1d;--surface:#18172b;--surface-2:#1f1d36;--text:#f1effa;--text-2:#d6d3e8;--muted:#a9a6c0;--muted-2:#9895b0;
--border:#2a2843;--border-2:#3a3560;--primary-soft:#2a2350;--primary-ink:#b3a1ff;
--hero:radial-gradient(120% 140% at 0% 0%,#1d2b52 0%,transparent 45%),radial-gradient(90% 120% at 100% 0%,#3a2050 0%,transparent 50%),linear-gradient(120deg,#16182e,#1d1733);
--soft-grad:linear-gradient(120deg,#1a1d36,#221a38);--header-bg:rgba(15,14,29,.86);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--fs-p);line-height:1.55;overflow-x:hidden}
img,svg{max-width:100%}
a{color:var(--primary);text-decoration:none}
a:hover{color:#4f2fe0}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3{margin:0;color:var(--text)}
p{margin:0}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.sr-only,.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.i{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-.18em}
.i.sm{width:16px;height:16px;color:#9a97ad}
.em{font-style:normal;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes pop{0%{transform:translate(-50%,10px) scale(.8);opacity:0}100%{transform:translate(-50%,0) scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Layout */
.container{max-width:var(--container);margin:0 auto;padding-inline:var(--gutter)}
.page{padding-top:16px}
.stack{display:flex;flex-direction:column;gap:clamp(28px,3vw,40px)}
.mt-section{margin-top:clamp(32px,4vw,48px)}
.layout{display:flex;flex-wrap:wrap;gap:28px;align-items:flex-start;margin-top:clamp(24px,3vw,36px)}
.layout-main{flex:3 1 620px;min-width:0}
.layout-aside{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.box{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px 22px}
.spacer-footer{height:clamp(40px,5vw,64px)}

/* Type */
.eyebrow{font-size:var(--fs-xs);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.h1{font-size:clamp(34px,5.4vw,60px);line-height:1.05;font-weight:800;letter-spacing:-.03em;margin-top:10px;text-wrap:pretty}
.h2{font-size:var(--fs-h2);font-weight:800;letter-spacing:-.02em}
.h3{font-size:20px;font-weight:800}
.grad-text{background:linear-gradient(90deg,var(--primary),#b84dff);-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{margin-top:14px;font-size:clamp(17px,1.6vw,19px);color:var(--muted);max-width:560px;text-wrap:pretty}
.sub{margin-top:4px;color:var(--muted)}
.muted{color:var(--muted-2)}
.section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 12px;margin-bottom:16px}
.section-head>div{min-width:0}
.link-arrow{font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}

/* Header */
.site-header{position:sticky;top:0;z-index:40;background:var(--header-bg);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}
.hdr-row{display:flex;align-items:center;gap:clamp(10px,1.6vw,20px);padding-block:12px}
.logo{display:flex;align-items:center;gap:8px;color:var(--text);font-weight:800;font-size:clamp(22px,2.4vw,28px);letter-spacing:-.02em;white-space:nowrap}
.logo:hover{color:var(--text)}
.logo-face{font-size:.8em}
.logo-x{background:linear-gradient(135deg,#7c4dff,var(--primary-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.nav{display:flex;gap:clamp(0px,.4vw,6px);margin:0 auto;min-width:0}
.nav a{padding:8px clamp(9px,1.1vw,16px);border-radius:999px;color:var(--text-2);font-weight:500;font-size:15px;white-space:nowrap}
.nav a:hover{background:var(--surface-2);color:var(--text)}
.nav a.active{background:var(--primary-soft);color:var(--primary-ink);font-weight:600}
.hdr-tools{display:flex;align-items:center;gap:14px;margin-left:auto}
.theme-toggle{position:relative;width:52px;height:30px;border-radius:999px;border:1px solid var(--border-2);background:#f1eff8;padding:0;transition:background .25s}
.theme-toggle span{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;color:#15132b;box-shadow:0 1px 4px rgba(0,0,0,.2);display:grid;place-items:center;transition:left .25s}
.theme-toggle .i{width:13px;height:13px}
[data-theme=dark] .theme-toggle{background:var(--primary)}
[data-theme=dark] .theme-toggle span{left:26px}

/* Hero + search */
.hero{position:relative;overflow:hidden;border-radius:var(--r-xl);padding:clamp(24px,5vw,56px) clamp(18px,5vw,56px) clamp(22px,3vw,32px);background:var(--hero);border:1px solid var(--border)}
.hero-row{display:flex;flex-wrap:wrap;align-items:center;gap:24px}
.hero-text{flex:1 1 420px;min-width:0}
.hero-art{flex:0 1 320px;position:relative;height:250px;display:grid;place-items:center}
.mascot{font-size:150px;line-height:1;animation:floaty 4s ease-in-out infinite;filter:drop-shadow(0 18px 24px rgba(124,77,255,.25))}
.bubble{position:absolute;top:6px;left:4px;padding:10px 16px;background:#fff;color:#15132b;border:2px solid #15132b;border-radius:22px 22px 22px 6px;font-weight:700;font-size:18px;transform:rotate(-8deg)}
.deco{position:absolute;line-height:1}
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border-radius:var(--r);padding:6px 6px 6px 16px;box-shadow:var(--shadow);border:1px solid var(--border)}
.search input{flex:1;min-width:0;border:0;outline:none;font-size:16px;padding:12px 4px;background:transparent}
.search>.i{width:20px;height:20px;color:var(--muted-2)}
.hero .search{margin:clamp(20px,3vw,32px) auto 0;max-width:720px}
.btn{display:inline-block;border:0;border-radius:12px;padding:13px clamp(16px,3vw,40px);background:linear-gradient(90deg,var(--primary),#8b5cf6);color:#fff;font-weight:600;font-size:16px;flex:none;text-align:center}
.btn:hover{filter:brightness(1.08);color:#fff}
.btn:disabled{opacity:.6;cursor:default}
.btn-ghost{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--border-2);background:var(--surface);color:var(--primary-ink);font-weight:600;font-size:16px;padding:12px 26px;border-radius:999px}
.btn-ghost:hover{background:var(--surface-2)}
.chips{margin:16px auto 0;max-width:720px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.chip{display:inline-block;border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:5px 14px;font-size:var(--fs-sm);color:var(--text-2)}
.chip:hover{border-color:var(--primary);color:var(--primary)}

/* Mood grid */
.mood-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:10px}
.mood{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;border-radius:14px;border:1.5px solid var(--border);background:var(--surface);font-size:var(--fs-sm);font-weight:600;color:var(--text-2);transition:transform .15s,box-shadow .15s}
.mood .em{font-size:28px;height:30px;display:grid;place-items:center}
.mood .em .i{width:26px;height:26px;color:var(--primary)}
.mood:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(92,64,200,.1)}
.mood.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-ink)}

/* Tabs */
.tabs{display:flex;gap:4px;background:var(--surface-2);padding:4px;border-radius:12px;overflow-x:auto;scrollbar-width:none}
.tab{border:0;padding:7px 14px;border-radius:9px;font-size:15px;font-weight:600;background:transparent;color:var(--muted);white-space:nowrap}
.tab.active{background:var(--surface);color:var(--primary-ink);box-shadow:0 1px 4px rgba(60,40,140,.12)}
.pill-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.pill-tab{flex:none;border:1.5px solid var(--border);background:var(--surface);color:var(--text-2);border-radius:999px;padding:8px 18px;font-size:15px;font-weight:600}
.pill-tab:hover{color:var(--primary-ink)}
.pill-tab small{margin-left:6px;font-weight:500;opacity:.7;font-size:inherit}
.pill-tab.active{background:var(--primary);border-color:var(--primary);color:#fff}

/* Kaomoji card */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,152px),1fr));gap:clamp(10px,1.4vw,16px)}
.card-grid.wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr))}
.k-card{min-width:0;display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:clamp(12px,1.4vw,16px);transition:box-shadow .2s,transform .2s}
.k-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.k-top{display:flex;align-items:flex-start;gap:6px}
.k-face{flex:1;min-width:0;text-align:left;background:none;border:0;padding:4px 0;font-size:clamp(19px,1.8vw,22px);color:var(--text);overflow-wrap:anywhere;line-height:1.3;min-height:58px}
.k-fav{flex:none;width:32px;height:32px;display:grid;place-items:center;border:0;background:none;border-radius:8px;color:#a09cb5}
.k-fav:hover{background:#fdf0f3}
.k-fav .i{width:19px;height:19px}
.k-fav.on{color:#f43f5e}
.k-fav.on .i{fill:#f43f5e}
.k-tag{display:flex;align-items:center;gap:6px;font-size:var(--fs-sm);color:var(--muted)}
.k-tag .em{font-size:17px}
.k-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.k-foot>:last-child{margin-left:auto}
.k-meta{display:flex;align-items:center;gap:4px;font-size:var(--fs-xs);color:var(--muted-2)}
.k-meta .i{width:14px;height:14px;color:#7a7790}
.k-like{display:inline-flex;align-items:center;gap:5px;border:0;background:none;padding:2px 0;font-size:var(--fs-xs);font-weight:600;color:var(--muted-2)}
.k-like .i{width:14px;height:14px}
.k-like.on{color:var(--primary-ink)}
.btn-copy{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border-2);background:var(--surface-2);color:var(--primary-ink);font-weight:600;font-size:var(--fs-xs);padding:5px 10px;border-radius:8px}
.btn-copy .i{width:13px;height:13px}
.btn-copy.copied{background:var(--primary);color:#fff;border-color:var(--primary)}
.empty{padding:40px 16px;text-align:center;border:1.5px dashed var(--border-2);border-radius:var(--r);color:var(--muted)}
.empty b{display:block;font-size:28px;color:var(--text)}
.empty p{margin:8px 0 12px}

/* Finder results */
.finder{margin-top:clamp(20px,3vw,32px);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);padding:clamp(16px,3vw,32px);scroll-margin-top:80px}
.finder[hidden]{display:none}
.fr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.fr-head p{color:var(--muted);margin-top:4px}
.fr-x{flex:none;width:36px;height:36px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);display:grid;place-items:center}
.fr-sec{margin-top:clamp(20px,3vw,28px)}
.fr-sec h3{font-size:18px;font-weight:800;margin-bottom:10px}
.fr-sec h4{font-size:15px;font-weight:700;color:var(--muted);margin:16px 0 8px}
.fr-more{margin-top:14px;display:flex}
.emo{display:flex;flex-wrap:wrap;gap:8px}
.emo button{font-size:26px;line-height:1;padding:8px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2)}
.emo button:hover{border-color:var(--primary)}
.dc-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:10px}
.dc{min-width:0;display:flex;flex-direction:column;gap:4px;text-align:left;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}
.dc:hover{border-color:var(--primary)}
.dc b{font-weight:500;font-size:18px;overflow-wrap:anywhere}
.dc small{font-size:12px;font-weight:600;color:var(--muted-2)}
.dc.copied{border-color:var(--primary);background:var(--primary-soft)}
.add-form{display:flex;gap:8px;max-width:560px;margin-top:14px}
.add-form input{flex:1;min-width:0;border:1px solid var(--border-2);border-radius:12px;padding:11px 14px;background:var(--surface);font-size:16px}
.add-form .btn{padding:11px 20px}
.fr-msg{margin-top:8px;font-size:15px;color:var(--muted)}
.fr-skel{height:120px;border-radius:var(--r);background:linear-gradient(90deg,var(--surface-2),var(--border),var(--surface-2));background-size:200% 100%;animation:sk 1.2s linear infinite}
@keyframes sk{to{background-position:-200% 0}}

/* Ranking */
.box-head{display:flex;align-items:center;gap:10px}
.box-head .em{font-size:26px}
.box-head h2{flex:1}
.rank-table{width:100%;table-layout:fixed;border-collapse:collapse;margin-top:10px}
.rank-table tr{cursor:pointer;border-top:1px solid var(--border)}
.rank-table tr:hover{background:var(--surface-2)}
.rank-table td{padding:10px 0}
.rank-table .c-n{width:38px}.rank-table .c-c{width:54px;text-align:right;font-size:var(--fs-sm);color:var(--muted)}
.rank-table .c-k{padding-right:6px;overflow-wrap:anywhere;line-height:1.3}
.rank-badge{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:var(--fs-xs);font-weight:700}
.rank-badge.r1{background:#f5b70a;color:#fff}.rank-badge.r2{background:#9aa6bb;color:#fff}.rank-badge.r3{background:#e0844a;color:#fff}

/* About box */
.world{background:var(--soft-grad);border:1px solid var(--border);border-radius:var(--r-lg);padding:22px clamp(16px,2vw,24px)}
.world-head{display:flex;gap:12px;align-items:flex-start}
.world-head .em{font-size:30px}
.world-head h2{font-size:18px;font-weight:700;color:var(--primary-ink)}
.world-head p{margin-top:4px;font-size:16px;color:var(--muted)}
.faces{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}
.faces i{font-style:normal;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:4px 12px;font-size:15px;white-space:nowrap}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.stats b{display:block;font-size:22px;color:var(--primary-ink)}
.stats span{font-size:var(--fs-xs);color:var(--muted)}

/* CTA */
.cta{position:relative;overflow:hidden;border-radius:24px;padding:clamp(24px,4vw,40px) clamp(20px,4vw,44px);background:linear-gradient(110deg,#5b3fd6,#7c5cf0 55%,#a78bfa);color:#fff;display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.cta h2{color:#fff;font-size:clamp(24px,3vw,34px);font-weight:800;letter-spacing:-.02em}
.cta p{margin:10px 0 20px;color:#f1edff;max-width:540px}
.cta-text{flex:1 1 380px;min-width:0}
.cta-art{flex:0 1 300px;position:relative;height:160px;margin:0 auto;width:100%;max-width:300px}
.btn-white{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#4b2fe0;font-weight:700;font-size:16px;padding:12px 22px;border-radius:999px}
.btn-white:hover{color:#4b2fe0;box-shadow:0 8px 20px rgba(0,0,0,.18)}

/* Categories */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:clamp(10px,1.4vw,16px)}
.cat{min-width:0;display:flex;align-items:center;gap:12px;text-align:left;padding:clamp(12px,1.6vw,18px);border-radius:var(--r);border:1px solid var(--border);background:var(--surface);transition:transform .15s,box-shadow .15s}
.cat:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(92,64,200,.1)}
.cat .em{font-size:34px;width:40px;text-align:center;flex:none}
.cat span:not(.em){flex:1;min-width:0}
.cat b{display:block;font-size:16px;color:var(--text)}
.cat small{display:block;font-size:var(--fs-xs);color:var(--muted-2)}

/* Prose / SEO */
.prose{color:var(--text-2);max-width:860px}
.prose h2{margin:36px 0 12px;font-size:clamp(24px,2.6vw,30px);font-weight:800;letter-spacing:-.02em;scroll-margin-top:90px}
.prose h2:first-child{margin-top:0}
.prose h3{margin:24px 0 8px;font-size:21px;font-weight:700;scroll-margin-top:90px}
.prose h4{margin:20px 0 8px;font-size:18px;font-weight:700}
.prose p{margin:0 0 16px;text-wrap:pretty}
.prose ul,.prose ol{margin:0 0 16px;padding-left:22px;display:grid;gap:8px}
.prose blockquote{margin:24px 0;padding:18px 22px;border-radius:var(--r);background:var(--soft-grad);font-size:19px;font-weight:600;color:var(--text)}
.prose blockquote p{margin:0}
.seo-box{background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:clamp(24px,4vw,44px)}
.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:14px;background:var(--surface);margin:0 0 16px}
.data-table,.entry table{width:100%;border-collapse:collapse;font-size:16px}
.data-table th,.entry th{background:var(--surface-2);text-align:left;padding:12px 14px;font-weight:700}
.data-table td,.entry td{padding:12px 14px;border-top:1px solid var(--border);color:var(--muted)}
.data-table td:first-child{font-weight:600;color:var(--text)}
.data-table .k{font-size:18px;white-space:nowrap;color:var(--text)}
.faq{display:grid;gap:8px}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:14px}
.faq summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-weight:600;cursor:pointer}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";width:18px;height:18px;flex:none;background:var(--primary);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s}
.faq details[open] summary::after{transform:rotate(180deg)}
.faq details p{margin:0;padding:0 16px 16px;color:var(--muted)}

/* Feedback */
.feedback{border-radius:var(--r-lg);padding:22px clamp(16px,3vw,28px);background:var(--soft-grad);border:1px solid var(--border);display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.feedback>div:first-child{flex:1 1 260px;min-width:0}
.feedback h2{font-size:20px;font-weight:800}
.feedback p{margin-top:4px;font-size:16px;color:var(--muted)}
.fb-btns{display:flex;gap:10px;flex-wrap:wrap}
.fb-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:12px;border:1.5px solid var(--border-2);background:var(--surface);font-weight:600;font-size:16px}
.fb-btn .i{width:18px;height:18px;color:var(--muted-2)}
.fb-btn.up.on{border-color:var(--green);background:#ecfdf3;color:#15803d}
.fb-btn.up.on .i{color:#15803d}
.fb-btn.down.on{border-color:var(--red);background:#fff1f3;color:#be123c}
.fb-btn.down.on .i{color:#be123c}
.fb-form{flex:1 1 100%;display:none;flex-direction:column;gap:10px}
.fb-form.show{display:flex}
.fb-form label{font-weight:600;font-size:16px}
.fb-form textarea{width:100%;border:1px solid var(--border-2);border-radius:12px;padding:12px;font-size:16px;resize:vertical;background:var(--surface)}
.fb-form .btn{align-self:flex-start;padding:10px 20px;border-radius:10px}

/* Footer */
.site-footer{background:var(--footer);color:#c9c6dc;padding-block:clamp(36px,5vw,56px) 28px}
.ft-row{display:flex;flex-wrap:wrap;gap:clamp(24px,4vw,48px)}
.ft-brand{flex:1 1 260px;min-width:0}
.ft-brand .logo{color:#fff;font-size:26px}
.ft-brand p{margin:10px 0 18px;font-size:16px;max-width:300px}
.socials{display:flex;flex-wrap:wrap;gap:14px}
.socials a{color:#c9c6dc;font-size:15px}
.ft-cols{flex:2 1 420px;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:20px}
.ft-cols h3,.ft-news h3{font-size:16px;color:#fff;font-weight:700;margin-bottom:10px}
.ft-cols ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ft-cols a{color:#c9c6dc;font-size:15px}
.ft-cols a:hover{color:#fff}
.ft-news{flex:1 1 280px;min-width:0}
.ft-news p{font-size:15px;margin-bottom:12px}
.ft-form{display:flex;gap:6px;background:#fff;border-radius:12px;padding:5px}
.ft-form input{flex:1;min-width:0;border:0;outline:none;padding:9px 10px;font-size:15px;border-radius:8px;color:#15132b;background:#fff}
.ft-form button{border:0;border-radius:9px;padding:9px 16px;background:var(--primary);color:#fff;font-weight:600;font-size:15px}
.ft-bottom{margin-top:36px;padding-top:18px;border-top:1px solid #23213d;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:var(--fs-sm)}

/* Mobile dock + sheet + toast */
.dock{display:none}
.sheet{position:fixed;inset:0;z-index:70;background:rgba(15,14,36,.45);display:none;align-items:flex-end}
.sheet.open{display:flex}
.sheet-panel{width:100%;background:var(--surface);border-radius:26px 26px 0 0;padding:10px var(--gutter) calc(24px + env(safe-area-inset-bottom))}
.sheet-grip{width:40px;height:5px;border-radius:3px;background:var(--border-2);margin:0 auto 16px}
.sheet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.sheet-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border-radius:var(--r);border:1px solid var(--border);background:var(--bg);font-size:var(--fs-sm);font-weight:600;color:var(--text)}
.sheet-grid .em{font-size:28px}
.toast{position:fixed;z-index:80;left:50%;top:76px;transform:translateX(-50%);background:#15132b;color:#fff;padding:10px 18px;border-radius:999px;font-size:15px;font-weight:600;box-shadow:0 10px 24px rgba(0,0,0,.2);white-space:nowrap;max-width:92vw;overflow:hidden;text-overflow:ellipsis;display:none}
.toast.show{display:block;animation:pop .22s ease-out both}

/* Article list */
.breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:var(--fs-sm);color:var(--muted-2);margin:4px 0 16px}
.breadcrumb [aria-current]{color:var(--text);font-weight:600}
.blog-hero{display:flex;flex-wrap:wrap;align-items:flex-end;gap:24px}
.blog-hero .hero-text{flex:1 1 420px}
.blog-hero .search{flex:1 1 320px;max-width:440px}
.featured{margin-top:20px;display:flex;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:24px;overflow:hidden;color:var(--text);transition:box-shadow .2s}
.featured:hover{color:var(--text);box-shadow:0 14px 36px rgba(92,64,200,.14)}
.featured-cover{flex:1 1 380px;min-height:clamp(200px,28vw,320px);display:grid;place-items:center;font-size:clamp(44px,7vw,84px);font-weight:600;color:#2b2550;padding:20px;text-align:center;overflow-wrap:anywhere}
.has-img{padding:0!important;overflow:hidden}
.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.featured-body{flex:1 1 380px;min-width:0;padding:clamp(18px,3vw,36px);display:flex;flex-direction:column;justify-content:center;gap:12px}
.featured-body h2{font-size:clamp(24px,2.8vw,34px);line-height:1.18;font-weight:800;letter-spacing:-.02em;text-wrap:pretty}
.featured-body p{color:var(--muted)}
.meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:var(--fs-sm);color:var(--muted-2)}
.badge-dark{background:var(--text);color:var(--bg);border-radius:999px;padding:3px 10px;font-weight:600;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.cat-label{color:var(--primary-ink);font-weight:700;text-transform:uppercase;letter-spacing:.05em;font-size:var(--fs-xs)}
.author{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--muted)}
.author b{color:var(--text)}
.avatar{flex:none;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;display:grid;place-items:center;font-weight:700;font-size:var(--fs-sm)}
.avatar.lg{width:44px;height:44px;font-size:16px}.avatar.xl{width:56px;height:56px;font-size:18px}
.post-list{display:flex;flex-direction:column}
.post-row{display:flex;gap:clamp(12px,2vw,24px);align-items:center;padding:clamp(14px,2vw,22px) 0;border-bottom:1px solid var(--border);color:var(--text)}
.post-row:hover{color:var(--primary-ink)}
.thumb{flex:none;width:200px;aspect-ratio:4/3;border-radius:var(--r);display:grid;place-items:center;font-size:24px;font-weight:600;color:#2b2550;overflow:hidden;white-space:nowrap}
.post-row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.post-row h3{font-size:clamp(17px,1.8vw,21px);line-height:1.3;font-weight:700;color:inherit;text-wrap:pretty;overflow-wrap:anywhere}
.post-row p{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-row .arrow{flex:none;width:22px;height:22px;color:#9a97ad}
.list-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:4px}
.pager{margin-top:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
.sticky-aside{position:sticky;top:88px}
.most-read{list-style:none;margin:6px 0 0;padding:0}
.most-read li{border-top:1px solid var(--border)}
.most-read a{display:flex;gap:12px;padding:12px 0;color:var(--text)}
.most-read a:hover{color:var(--primary-ink)}
.most-read .n{flex:none;font-size:22px;font-weight:800;color:#d5cff0;width:28px}
.most-read b{display:block;font-size:16px;font-weight:600;line-height:1.35}
.most-read small{display:block;font-size:var(--fs-xs);color:var(--muted-2);margin-top:2px}
.tag-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.promo{display:flex;align-items:center;gap:14px;border-radius:var(--r-lg);padding:18px 20px;background:linear-gradient(110deg,#5b3fd6,#7c5cf0 55%,#a78bfa);color:#fff}
.promo:hover{color:#fff}
.promo .em{font-size:44px;flex:none}
.promo b{display:block;font-size:17px}
.promo small{display:block;font-size:var(--fs-sm);color:#ece7ff}

/* Article */
.progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:50;background:linear-gradient(90deg,var(--primary),var(--primary-2))}
.post-head{max-width:860px}
.post-head .h1{font-size:clamp(30px,4.6vw,50px);line-height:1.1}
.cat-pill{background:var(--primary-soft);color:var(--primary-ink);border-radius:999px;padding:4px 12px;font-weight:700;font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.05em}
.post-by{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:22px}
.post-by .author{line-height:1.35}
.post-by .author span b{display:block}
.share{display:flex;gap:8px}
.share a,.share button{width:42px;height:42px;border-radius:12px;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;color:var(--text-2)}
.share a:hover,.share button:hover{border-color:var(--primary);color:var(--primary)}
.share .i{width:18px;height:18px}
.cover{margin-top:24px;border-radius:var(--r-xl);min-height:clamp(180px,30vw,380px);display:grid;place-items:center;border:1px solid var(--border);font-size:clamp(52px,10vw,120px);font-weight:600;color:#2b2550;padding:20px;text-align:center;overflow-wrap:anywhere}
.cover.has-img{min-height:0;display:block}
.post-layout{display:flex;flex-wrap:wrap;gap:clamp(24px,4vw,56px);margin-top:clamp(24px,4vw,44px);align-items:flex-start}
.toc{flex:1 1 220px;min-width:0;max-width:260px;position:sticky;top:88px}
.toc-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;background:none;padding:0;font-size:var(--fs-xs);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);cursor:default}
.toc-toggle .i{display:none;width:18px;height:18px;transition:transform .2s}
.toc ol{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.toc a{display:block;padding:7px 12px;border-left:2px solid var(--border);color:var(--muted);font-weight:500;font-size:15px;line-height:1.35}
.toc a.active{border-color:var(--primary);color:var(--primary-ink);font-weight:700}
.post-body{flex:3 1 560px;min-width:0;max-width:760px}
.entry>p:first-child{font-size:19px;color:var(--text)}
.entry a{text-decoration:underline;text-underline-offset:2px}
.entry img,.entry video,.entry iframe{max-width:100%;height:auto;border-radius:12px}
.entry figure{margin:0 0 16px}
.entry figcaption{font-size:var(--fs-sm);color:var(--muted);margin-top:6px}
.entry pre,.entry code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
.entry pre{background:var(--surface-2);padding:14px 16px;border-radius:12px;overflow-x:auto;margin:0 0 16px}
.entry hr,.wp-block-separator{border:0;border-top:1px solid var(--border);margin:28px 0}
.entry .alignleft{float:left;margin:0 16px 8px 0}.entry .alignright{float:right;margin:0 0 8px 16px}.entry .aligncenter{display:block;margin-inline:auto;text-align:center}
.wp-block-button__link{display:inline-block;padding:12px 22px;border-radius:999px;background:var(--primary);color:#fff;font-weight:600;text-decoration:none}
.wp-block-columns{display:flex;flex-wrap:wrap;gap:24px}.wp-block-column{flex:1 1 240px;min-width:0}
.wp-block-gallery{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0 0 16px}.wp-block-gallery figure{flex:1 1 160px;margin:0}
.wp-block-embed iframe{width:100%}
.samples{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:10px;margin:0 0 16px}
.sample{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:14px;border-radius:14px;border:1px solid var(--border);background:var(--surface)}
.sample:hover{border-color:var(--primary)}
.sample b{font-size:20px;font-weight:500;color:var(--text);overflow-wrap:anywhere}
.sample small{font-size:var(--fs-xs);font-weight:600;color:var(--muted-2)}
.sample.copied{border-color:var(--primary);background:var(--primary-soft)}
.author-box{display:flex;gap:16px;align-items:center;margin-top:20px;padding:20px 0;border-block:1px solid var(--border)}
.author-box small{display:block;font-size:var(--fs-xs);color:var(--muted-2);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.author-box b{display:block;font-size:18px;color:var(--text)}
.author-box p{margin:0;font-size:16px;color:var(--muted)}
.prevnext{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin-top:20px}
.prevnext a{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:var(--r);border:1px solid var(--border);background:var(--surface);color:var(--text)}
.prevnext a:hover{border-color:var(--primary);color:var(--text)}
.prevnext a:last-child:not(:only-child){text-align:right}
.prevnext small{font-size:var(--fs-xs);font-weight:600;color:var(--muted-2)}
.prevnext b{font-size:16px;line-height:1.35}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:clamp(12px,1.6vw,20px)}
.rel{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;color:var(--text);transition:box-shadow .2s,transform .2s}
.rel:hover{color:var(--text);box-shadow:var(--shadow);transform:translateY(-2px)}
.rel-cover{aspect-ratio:16/9;display:grid;place-items:center;font-size:34px;font-weight:600;color:#2b2550;white-space:nowrap;overflow:hidden}
.rel-body{padding:16px;display:flex;flex-direction:column;gap:6px}
.rel-body b{font-size:18px;line-height:1.3}
.rel-body small{font-size:var(--fs-sm);color:var(--muted-2)}

/* Comments */
.comments{margin-top:32px}
.cm-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:12px}
.cm-list .children{list-style:none;margin:12px 0 0 clamp(12px,3vw,32px);padding:0;display:grid;gap:12px}
.cm{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px}
.cm-head{display:flex;align-items:center;gap:10px;font-size:15px}
.cm-head span:last-child b{display:block}
.cm-head time{display:block;font-size:var(--fs-xs);color:var(--muted-2)}
.cm-body{margin-top:8px;color:var(--text-2)}
.cm-body p{margin:0 0 8px}
.cm-reply a{font-size:var(--fs-sm);font-weight:600}
.comment-form{display:grid;gap:12px;margin-top:12px}
.comment-form p{margin:0;display:grid;gap:4px}
.comment-form label{font-weight:600;font-size:15px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;border:1px solid var(--border-2);border-radius:12px;padding:11px 14px;background:var(--surface);font-size:16px}
.comment-form .comment-form-cookies-consent{display:flex;gap:8px;align-items:center}
.comment-notes,.logged-in-as{font-size:var(--fs-sm);color:var(--muted)}

/* 404 */
.nf{text-align:center}
.nf-face{font-size:clamp(56px,12vw,110px);line-height:1.1;margin-top:10px}
.nf .search{margin:24px auto 0;max-width:480px}
.nf-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}

/* Tablet */
@media (max-width:759px){
.nav,.hero-art{display:none}
.box,.seo-box{background:transparent;border:0;padding:0;border-radius:0}
.sticky-aside,.toc{position:static}
.site-footer{padding-bottom:120px}
.table-wrap{border:0;background:none;overflow:visible}
.data-table thead{display:none}
.data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}
.data-table tr{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.data-table td{border:0;padding:3px 0}
.data-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted-2)}
.data-table .k{white-space:normal;overflow-wrap:anywhere}
.thumb{width:96px;aspect-ratio:1/1;font-size:15px}
.post-row p,.post-row .arrow{display:none}
.toc{max-width:100%;flex-basis:100%;background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px}
.toc-toggle{cursor:pointer}
.toc-toggle .i{display:block}
.toc ol{display:none}
.toc.open ol{display:flex}
.toc.open .toc-toggle .i{transform:rotate(180deg)}
.add-form{flex-direction:column}
.dock{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;position:fixed;z-index:60;left:12px;right:12px;bottom:12px;height:70px;border-radius:24px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);box-shadow:0 12px 34px rgba(40,24,120,.18);border:1px solid rgba(255,255,255,.9)}
[data-theme=dark] .dock{background:rgba(24,23,43,.92);border-color:var(--border)}
.dock-ind{position:absolute;top:0;width:30px;height:4px;border-radius:0 0 6px 6px;background:linear-gradient(90deg,var(--primary),var(--primary-2));transition:left .3s cubic-bezier(.3,1.4,.5,1)}
.dock-btn{position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;font-size:12px;font-weight:600;color:#77748c}
.dock-btn:hover{color:#77748c}
.dock-btn .ic{position:relative;display:grid;place-items:center;width:44px;height:30px;border-radius:12px;transition:background .2s}
.dock-btn .i{width:22px;height:22px}
.dock-btn.active,.dock-btn.active:hover{color:var(--primary-ink)}
.dock-btn.active .ic{background:var(--primary-soft)}
.dock-badge{position:absolute;top:-4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff4d7d;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid #fff}
.dock-badge:empty{display:none}
.dock-mid{position:relative;height:100%;display:flex;justify-content:center}
.fab{position:absolute;top:-24px;width:64px;height:64px;border-radius:22px;border:4px solid var(--bg);background:conic-gradient(from 200deg,var(--primary),var(--primary-2),#ff7ab6,var(--primary));color:#fff;font-size:13px;font-weight:800;box-shadow:0 10px 22px rgba(109,74,255,.45);transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
.fab span{display:block;transition:transform .45s}
.fab-label{position:absolute;bottom:9px;font-size:12px;font-weight:700;background:linear-gradient(90deg,var(--primary),var(--primary-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.fab-pop{position:absolute;bottom:92px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#15132b;color:#fff;font-size:18px;padding:10px 16px;border-radius:14px;box-shadow:0 10px 24px rgba(0,0,0,.2);display:none;text-align:center}
.fab-pop small{display:block;font-size:12px;color:#b9b5d6}
.fab-pop.show{display:block;animation:pop .25s ease-out both}
}
@media (max-width:1099px){.hdr-tools{gap:10px}}
