/* 佳茗手记 · blog.css (Claude, 2026-11-29) — night sakura (dark) + day (light) */
@font-face { font-family: "JM Display"; src: url("/blog/assets/fonts/jm-blog-display-v1.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JM Geo"; src: url("/assets/shop/shop-geo-v1.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --display: "JM Display", var(--sans);
  --geo: "JM Geo", "Jost", "Segoe UI", var(--sans);
  --mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, "SFMono-Regular", Menlo, monospace;
  --radius: 16px;
  --grad: linear-gradient(92deg, #ffc2d8 0%, #ff8fb7 32%, #c59bff 66%, #84c9ff 100%);
  --grad-btn: linear-gradient(100deg, #ff7fae 0%, #c77dff 55%, #6fa8ff 100%);
  --ok: #3ddc97; --mid: #ffc857; --bad: #ff6470;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090e1c; --bg-2: #0d1428;
  --panel: rgba(16, 23, 44, .78); --panel-solid: #111a33; --panel-2: rgba(28, 38, 70, .55);
  --glass: rgba(14, 20, 40, .62); --input: rgba(255, 255, 255, .045); --hover: rgba(255, 255, 255, .06);
  --line: rgba(140, 168, 255, .13); --line-2: rgba(140, 168, 255, .22); --line-3: rgba(170, 190, 255, .34);
  --text: #eaf0ff; --text-2: #bdc7e6; --muted: #8590b4;
  --accent: #ff8fb7; --accent-2: #86c8ff; --accent-soft: rgba(255, 143, 183, .13); --gold: #f3c969;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 44px rgba(0, 0, 0, .45);
  --nav-bg: rgba(9, 14, 28, .74); --footer-bg: rgba(7, 11, 22, .7);
  --bubble: rgba(255, 255, 255, .94); --bubble-text: #23284a;
  --code-bg: #0b1122; --code-head: rgba(255, 255, 255, .03); --code-text: #d7def5; --code-inline: #ffc2d8; --code-inline-bg: rgba(255, 143, 183, .1);
  --table-head: rgba(134, 200, 255, .07); --quote-bg: rgba(255, 255, 255, .035);
  --hero-filter: brightness(.6) saturate(1.12) contrast(1.04);
  --hero-veil: linear-gradient(90deg, rgba(9, 14, 28, .96) 0%, rgba(9, 14, 28, .86) 33%, rgba(9, 14, 28, .4) 60%, rgba(9, 14, 28, .12) 100%),
    linear-gradient(0deg, rgba(9, 14, 28, .9) 0%, rgba(9, 14, 28, 0) 36%),
    radial-gradient(55% 75% at 78% 28%, rgba(255, 143, 183, .2), transparent 70%);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3fb; --bg-2: #ece8f7;
  --panel: rgba(255, 255, 255, .86); --panel-solid: #ffffff; --panel-2: rgba(244, 241, 252, .9);
  --glass: rgba(255, 255, 255, .72); --input: rgba(255, 255, 255, .7); --hover: rgba(60, 60, 140, .06);
  --line: rgba(70, 76, 150, .12); --line-2: rgba(70, 76, 150, .2); --line-3: rgba(70, 76, 150, .32);
  --text: #1b2142; --text-2: #3d4569; --muted: #6c7395;
  --accent: #e0467e; --accent-2: #2a72cf; --accent-soft: rgba(224, 70, 126, .1); --gold: #b07d12;
  --shadow: 0 10px 28px rgba(44, 52, 120, .1); --shadow-lg: 0 18px 40px rgba(44, 52, 120, .16);
  --nav-bg: rgba(248, 246, 255, .82); --footer-bg: rgba(255, 255, 255, .6);
  --bubble: #ffffff; --bubble-text: #23284a;
  --code-bg: #141b33; --code-head: rgba(255, 255, 255, .04); --code-text: #dfe5f7; --code-inline: #c2185b; --code-inline-bg: rgba(224, 70, 126, .08);
  --table-head: rgba(42, 114, 207, .06); --quote-bg: rgba(42, 52, 120, .04);
  --hero-filter: brightness(1.02) saturate(1.06);
  --hero-veil: linear-gradient(90deg, rgba(248, 246, 255, .97) 0%, rgba(248, 246, 255, .88) 34%, rgba(248, 246, 255, .35) 62%, rgba(248, 246, 255, 0) 100%),
    linear-gradient(0deg, rgba(248, 246, 255, .7) 0%, rgba(248, 246, 255, 0) 32%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; font: 15px/1.7 var(--sans); color: var(--text); background: var(--bg); overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--panel-solid); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 620px at 88% -8%, rgba(255, 143, 183, .11), transparent 62%),
    radial-gradient(900px 560px at -6% 12%, rgba(134, 200, 255, .09), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(197, 155, 255, .08), transparent 60%),
    radial-gradient(rgba(170, 190, 255, .07) 1px, transparent 1.2px) 0 0 / 26px 26px, var(--bg); }
[data-theme="light"] .bg-fx { background: radial-gradient(1100px 620px at 88% -8%, rgba(255, 143, 183, .16), transparent 62%),
    radial-gradient(900px 560px at -6% 12%, rgba(134, 200, 255, .14), transparent 60%),
    radial-gradient(rgba(70, 76, 150, .08) 1px, transparent 1.2px) 0 0 / 26px 26px, var(--bg); }
.wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(980px, 100% - 40px); margin-top: 22px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav-in { height: 62px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-face { display: block; width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: var(--grad); flex: none; }
.logo-face.sm { width: 32px; height: 32px; }
.logo-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-solid); }
.logo-txt b { display: block; font: 400 20px/1 var(--display); letter-spacing: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-txt small { display: block; margin-top: 5px; font: 600 8.5px/1 var(--geo); letter-spacing: .34em; color: var(--muted); }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a, .nav-menu a { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.nav-links a span, .nav-menu a span { font-family: var(--display); letter-spacing: .06em; font-size: 15px; }
.nav-links a:hover, .nav-menu a:hover { background: var(--hover); color: var(--text); }
.nav-links a[aria-current="page"], .nav-menu a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: flex; align-items: center; gap: 8px; width: 232px; height: 36px; padding: 0 7px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .2s; }
.search-btn:hover { border-color: var(--line-3); }
.search-btn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
kbd { display: inline-block; white-space: nowrap; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 10px/1 var(--geo); color: var(--muted); background: var(--input); }
.search-btn kbd { margin-left: auto; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input); color: var(--text-2); cursor: pointer; list-style: none; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }
.icon-btn::-webkit-details-marker { display: none; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.shop-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; color: #fff; background: var(--grad-btn); font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 4px 16px rgba(255, 120, 170, .28); white-space: nowrap; }
.nav-more { position: relative; display: none; }
.nav-more summary { cursor: pointer; }
.nav-menu { position: absolute; right: 0; top: 46px; width: 200px; padding: 8px; display: grid; gap: 2px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: var(--shadow-lg); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: 480px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #0c1430; box-shadow: var(--shadow-lg); }
[data-theme="light"] .hero { background: #dfe6fb; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("/assets/shop/bg-fuji-sakura-wide-v1.webp") 64% 40% / cover no-repeat; filter: var(--hero-filter); transform: scale(1.03); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil); pointer-events: none; }
.hero-text { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 44px 10px 42px 50px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 13px/1.2 var(--sans); letter-spacing: .1em; color: var(--accent); }
.eyebrow::before { content: "//"; font-family: var(--geo); color: var(--muted); letter-spacing: 0; }
.hero h1 { margin: 16px 0 0; font: 400 clamp(38px, 4.3vw, 62px)/1.14 var(--display); letter-spacing: .05em; color: var(--text); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
[data-theme="light"] .hero h1 { text-shadow: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .grad { filter: drop-shadow(0 6px 22px rgba(255, 143, 183, .28)); }
.lead { margin: 18px 0 0; font-size: 15px; line-height: 1.9; color: var(--text-2); }
.stats { display: flex; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.stats li { padding: 0 22px; border-left: 1px solid var(--line-2); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font: 700 27px/1 var(--geo); letter-spacing: .01em; color: var(--text); }
.stats li:nth-child(2) b, .stats li:nth-child(4) b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 26px rgba(255, 110, 170, .34); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-3); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-s { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--grad-btn); border: 0; text-decoration: none; cursor: pointer; }
.btn-s.ghost { color: var(--text); background: var(--input); border: 1px solid var(--line-2); }
.btn-s .i { width: 14px; height: 14px; }

.stage { position: relative; min-height: 480px; }
.stage-fig { position: absolute; inset: 22px 0 0 0; margin: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: translateX(18px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.stage-fig.on { opacity: 1; transform: none; }
.stage-fig img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .42)); }
.stage-fig.on img { animation: breathe 5.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.005, 1.013) translateY(-1px); } }
.stage-say { position: absolute; z-index: 4; top: 26px; right: 5%; max-width: min(46%, 300px); margin: 0; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--bubble); color: var(--bubble-text); font-size: 13.5px; line-height: 1.6; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.stage-say.pop { animation: pop .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.stage-plate { position: absolute; z-index: 4; left: 4%; bottom: 76px; display: flex; align-items: center; gap: 10px; max-width: 78%; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.stage-plate .cls { width: 34px; height: 34px; flex: none; }
.sp-txt { display: grid; gap: 3px; min-width: 0; }
.sp-txt b { font: 400 18px/1.15 var(--display); letter-spacing: .04em; color: var(--text); }
.sp-txt small { font: 600 9.5px/1 var(--geo); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.guard { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(140, 150, 190, .12); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 151, .8); }
.dot.busy { background: var(--mid); box-shadow: 0 0 10px rgba(255, 200, 87, .8); }
.dot.off { background: var(--bad); box-shadow: 0 0 10px rgba(255, 100, 112, .7); }
.stage-faces { position: absolute; z-index: 4; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; padding: 6px 14px; }
.face-btn { width: 40px; height: 40px; flex: none; padding: 2px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); cursor: pointer; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), background .25s; }
.face-btn img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-solid); }
.face-btn:hover { transform: translateY(-3px); }
.face-btn[aria-pressed="true"] { background: var(--grad); transform: translateY(-5px) scale(1.14); box-shadow: 0 6px 18px rgba(255, 143, 183, .45); }
.petals { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -6%; left: 50%; width: 11px; height: 8px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #ffe0ea, #ff9fc3); opacity: .85; animation: fall 13s linear infinite; }
.petals i:nth-child(1) { left: 8%; animation-duration: 14s; animation-delay: -2s; }
.petals i:nth-child(2) { left: 18%; animation-duration: 11s; animation-delay: -7s; transform: scale(.7); }
.petals i:nth-child(3) { left: 27%; animation-duration: 16s; animation-delay: -4s; }
.petals i:nth-child(4) { left: 36%; animation-duration: 12s; animation-delay: -9s; }
.petals i:nth-child(5) { left: 45%; animation-duration: 15s; animation-delay: -1s; }
.petals i:nth-child(6) { left: 53%; animation-duration: 13s; animation-delay: -11s; }
.petals i:nth-child(7) { left: 61%; animation-duration: 17s; animation-delay: -6s; }
.petals i:nth-child(8) { left: 68%; animation-duration: 12s; animation-delay: -3s; }
.petals i:nth-child(9) { left: 75%; animation-duration: 14s; animation-delay: -8s; }
.petals i:nth-child(10) { left: 82%; animation-duration: 11s; animation-delay: -5s; }
.petals i:nth-child(11) { left: 88%; animation-duration: 16s; animation-delay: -12s; }
.petals i:nth-child(12) { left: 94%; animation-duration: 13s; animation-delay: -10s; }
.petals i:nth-child(13) { left: 99%; animation-duration: 15s; animation-delay: -14s; }
.petals i:nth-child(14) { left: 41%; animation-duration: 18s; animation-delay: -13s; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate3d(-60px, 300px, 0) rotate(260deg); }
  100% { transform: translate3d(-150px, 620px, 0) rotate(560deg); opacity: .2; }
}

/* ---------- home grid ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 22px; align-items: start; }
.home-main { display: grid; gap: 26px; min-width: 0; }
.home-side { display: grid; gap: 16px; }
.cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 75% at 50% 0%, color-mix(in srgb, var(--c) 26%, transparent), transparent 72%); }
.cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 22%, transparent); }
.cat-face { display: block; width: 50px; height: 50px; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, var(--c), color-mix(in srgb, var(--c) 30%, #fff), var(--c)); }
.cat-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-solid); }
.cat b { font: 400 15px/1.1 var(--display); letter-spacing: .05em; white-space: nowrap; }
.cat small { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.cat small .i { width: 12px; height: 12px; color: var(--c); }
.sec { min-width: 0; }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head .ico, .w-head .ico { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; color: var(--accent); background: var(--accent-soft); }
.sec-head h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 400 20px/1.1 var(--display); letter-spacing: .05em; }
.sec-head h2 small { font: 600 10px/1 var(--geo); letter-spacing: .3em; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more .i { width: 14px; height: 14px; }
.sec-note { margin: -6px 0 14px; color: var(--muted); font-size: 13.5px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feed3 > :nth-child(n+4), .posts-grid > :nth-child(n+7) { display: none; }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: var(--shadow-lg); }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 15px; }
.card-top { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--text); }
.card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.75; color: var(--muted); }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }
.mins { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.mins .i { width: 13px; height: 13px; }
.tags-s { display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; overflow: hidden; max-height: 1.6em; }
.tags-s span { white-space: nowrap; color: var(--muted); font-size: 12px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px; font: 400 12px/1 var(--display); letter-spacing: .05em; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); text-decoration: none; }
.cover { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 58%, #0a1026) 0%, #0a1026 78%); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/blog/assets/img/fuji-cover.webp") 50% 38% / cover; opacity: .3; mix-blend-mode: luminosity; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 90% at 82% 18%, color-mix(in srgb, var(--c) 42%, transparent), transparent 66%), linear-gradient(0deg, rgba(5, 8, 20, .6), transparent 46%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); pointer-events: none; }
.cv-word { position: absolute; z-index: 2; left: 14px; bottom: 11px; max-width: 62%; font: 800 clamp(19px, 1.9vw, 28px)/.95 var(--geo); letter-spacing: .03em; color: rgba(255, 255, 255, .94); text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.cv-jp { position: absolute; z-index: 2; left: 15px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.cv-sv { position: absolute; z-index: 1; top: calc(var(--t) * 1%); right: calc(var(--r) * 1%); height: calc(var(--h) * 1%); width: auto; max-width: none; filter: drop-shadow(-8px 8px 16px rgba(0, 0, 0, .35)); transition: transform .5s cubic-bezier(.2, .8, .3, 1); transform-origin: 70% 20%; }
.card:hover .cv-sv, .post-row:hover .cv-sv { transform: scale(1.045) translateX(-4px); }
.feed-card .fc-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 50%, #0a1026), #0a1026 80%); }
.fc-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fc-img.contain { object-fit: contain; padding: 10px 0 0; }
.fc-sv { position: absolute; right: 4%; top: 6%; height: 150%; width: auto; max-width: none; }
.fc-faces { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-content: center; gap: 8px; padding: 10px 18px; }
.fc-faces img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .5); }
.fc-faces img:nth-child(n+6) { transform: translateX(50%); }
.feed-card:hover .fc-img { transform: scale(1.04); }
.fc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--text); }

/* ---------- quote ---------- */
.quote { position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px; min-height: 132px; padding: 22px 30px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #10183a url("/blog/assets/img/banner-saber.webp") 72% 30% / cover; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 30, .94) 0%, rgba(8, 12, 30, .78) 46%, rgba(8, 12, 30, .25) 100%); }
.quote-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--gold); background: rgba(243, 201, 105, .12); }
.quote-mark .i { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.quote-text { margin: 0; font: 400 clamp(17px, 1.7vw, 22px)/1.4 var(--display); letter-spacing: .05em; color: #fff; }
.quote-text small { display: block; margin-top: 8px; font: 13px/1.4 var(--sans); letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.quote-en { margin: 0 0 0 auto; text-align: right; }
.quote-en b { display: block; font: 800 22px/1.1 var(--geo); letter-spacing: .12em; background: linear-gradient(90deg, #ffe7a8, #f3c969 50%, #ffd9e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote-en span { display: block; margin-top: 6px; font: 600 11px/1 var(--geo); letter-spacing: .24em; color: rgba(255, 255, 255, .72); }

/* ---------- widgets ---------- */
.widget { position: relative; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.w-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.w-head h2 { margin: 0; font: 400 16px/1 var(--display); letter-spacing: .06em; }
.w-badge { margin-left: auto; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--input); border: 1px solid var(--line); white-space: nowrap; }
.w-badge.ok { color: var(--ok); border-color: rgba(61, 220, 151, .35); background: rgba(61, 220, 151, .08); }
.w-badge.warn { color: var(--mid); border-color: rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .08); }
.st-list { display: grid; }
.st-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 8px; align-items: center; gap: 10px; padding: 7px 2px; }
.st-row + .st-row { border-top: 1px dashed var(--line); }
.st-row img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; transition: filter .3s; }
.st-row.off img { filter: grayscale(1) brightness(.75); }
.st-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.st-name b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-name small { overflow: hidden; font-size: 11px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.st-ms { font: 600 11.5px/1 var(--geo); color: var(--muted); white-space: nowrap; }
.st-ms.good { color: var(--ok); } .st-ms.mid { color: var(--mid); } .st-ms.bad { color: var(--bad); }
.w-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--accent); text-decoration: none; }
.w-foot .i { width: 14px; height: 14px; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 4px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; transition: transform .2s, border-color .2s; }
.tool:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tc) 55%, transparent); }
.tool i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 2px; border-radius: 10px; font: 800 12px/1 var(--geo); font-style: normal; letter-spacing: .02em; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 80%, #fff), var(--tc)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.tool b { font-size: 12px; line-height: 1.2; }
.tool small { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; color: var(--text-2); text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s; }
.tag:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tag em { font: 600 11px/1 var(--geo); font-style: normal; color: var(--muted); }
.tag.big { font-size: calc(13px * var(--w)); padding: 6px 12px; }
.w-today { min-height: 196px; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--cc, #8a5cf0) 22%, var(--panel)) 0%, var(--panel) 72%); }
.today-body { position: relative; z-index: 2; width: 62%; }
.today-name { display: block; font: 400 18px/1.25 var(--display); letter-spacing: .04em; }
.today-en { display: block; margin-top: 3px; font: 600 9.5px/1.3 var(--geo); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.today-say { margin: 10px 0 12px; font-size: 13px; line-height: 1.65; color: var(--text-2); }
.today-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.today-art:not([src]) { display: none; }
.today-art { position: absolute; z-index: 1; right: -6px; bottom: 0; height: 190px; width: auto; max-width: 52%; object-fit: contain; object-position: 100% 100%; filter: drop-shadow(-6px 6px 14px rgba(0, 0, 0, .3)); }

/* ---------- 3-column pages ---------- */
.layout3 { display: grid; grid-template-columns: 216px minmax(0, 1fr) 270px; gap: 20px; align-items: start; margin-top: 22px; }
.side-left, .side-right { position: sticky; top: 82px; display: grid; gap: 16px; }
.main-panel { min-width: 0; padding: 28px 34px 34px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.w-cats { padding: 14px 10px; }
.w-cats .w-head { padding: 0 6px; }
.cat-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text-2); text-decoration: none; transition: background .2s, color .2s; }
.cat-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #8590b4) 60%, transparent); }
.cat-row span { font: 400 14px/1.2 var(--display); letter-spacing: .04em; }
.cat-row em { font: 600 11.5px/1 var(--geo); font-style: normal; color: var(--muted); }
.cat-row:hover { background: var(--hover); color: var(--text); }
.cat-row.on { color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); }
.all-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.all-ico .i { width: 14px; height: 14px; }
.page-head h1 { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 400 28px/1.2 var(--display); letter-spacing: .05em; }
.page-head h1 small { font: 600 10.5px/1 var(--geo); letter-spacing: .3em; color: var(--muted); }
.page-head p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 13.5px; }
.filter-bar[hidden] { display: none; }
#filter-count { color: var(--muted); }
.filter-clear { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--accent); text-decoration: none; }
.filter-clear .i { width: 14px; height: 14px; }
.post-list { margin-top: 18px; }
.month[hidden], .post-row[hidden], .sv-card[hidden] { display: none; }
.month-h { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; font: 400 15px/1 var(--display); letter-spacing: .06em; color: var(--text-2); }
.month-h small { font: 600 11px/1 var(--geo); color: var(--muted); }
.post-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 12px; margin: 0 -12px; border-radius: 16px; text-decoration: none; transition: background .2s; }
.post-row + .post-row { margin-top: 4px; }
.post-row:hover { background: var(--hover); }
.post-row .cover { border-radius: 12px; }
.pr-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pr-title { font-size: 17px; line-height: 1.45; color: var(--text); }
.pr-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- post ---------- */
.progress { position: fixed; left: 0; right: 0; top: 62px; z-index: 49; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.back { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }
.post-head h1 { margin: 18px 0 12px; font-size: clamp(25px, 2.5vw, 32px); line-height: 1.35; color: var(--text); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .i { width: 14px; height: 14px; }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-s { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--text-2); background: var(--input); border: 1px solid var(--line); text-decoration: none; }
.tag-s:hover { color: var(--accent); }
.guide { display: flex; align-items: flex-start; gap: 14px; margin: 22px 0 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 15%, transparent), transparent 80%); }
.guide-face { display: block; width: 56px; height: 56px; flex: none; padding: 2px; border-radius: 50%; background: conic-gradient(from 200deg, var(--c), color-mix(in srgb, var(--c) 25%, #fff), var(--c)); }
.guide-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-solid); }
.guide b { font: 400 15px/1.2 var(--display); letter-spacing: .05em; color: var(--c); }
.guide small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.guide p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.toc-mobile { display: none; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); }
.toc-mobile summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .toc { margin-top: 8px; }
.toc { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line-2); font-size: 13px; line-height: 1.45; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.toc a.toc-l3 { padding-left: 22px; font-size: 12.5px; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.w-toc { max-height: calc(100vh - 120px); overflow: auto; }

.prose { margin-top: 22px; font-size: 16px; line-height: 1.95; color: var(--text-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { position: relative; color: var(--text); scroll-margin-top: 84px; }
.prose h2 { margin: 2.1em 0 .75em; padding-left: 15px; font-size: 22px; line-height: 1.4; }
.prose h2::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: linear-gradient(var(--c), color-mix(in srgb, var(--c) 25%, transparent)); }
.prose h3 { margin: 1.8em 0 .6em; font-size: 18px; line-height: 1.45; }
.h-anchor { margin-left: 8px; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .2s; font-weight: 400; }
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor { opacity: .7; }
.prose p { margin: 0 0 1.05em; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-2) 40%, transparent); text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { margin: .32em 0; }
.prose li::marker { color: var(--c); }
.prose code { padding: .15em .42em; border-radius: 6px; font: 500 .86em/1.4 var(--mono); color: var(--code-inline); background: var(--code-inline-bg); border: 1px solid var(--line); overflow-wrap: anywhere; }
.prose img { display: block; margin: 1.2em auto; border-radius: 12px; }
.prose hr { height: 22px; margin: 2em 0; border: 0; background: center / auto 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18'%3E%3Cpath d='M0 9h44M76 9h44' stroke='%23ff8fb7' stroke-opacity='.45'/%3E%3Cg fill='%23ff8fb7'%3E%3Ccircle cx='60' cy='9' r='3'/%3E%3Ccircle cx='52' cy='9' r='1.6'/%3E%3Ccircle cx='68' cy='9' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--c); border-radius: 0 12px 12px 0; background: var(--quote-bg); }
.prose blockquote p { margin: 0; }
.callout { display: flex; align-items: flex-start; gap: 12px; margin: 1.4em 0; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.callout-warn { --c: #ffb020; }
.callout-face { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; margin: 0 !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); }
.callout-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; font: 800 18px/1 var(--geo); color: #1b1300; background: var(--c); }
.callout-title { display: block; margin-bottom: 2px; font: 400 14px/1.3 var(--display); letter-spacing: .06em; color: var(--c); }
.callout p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--text); }
.table-wrap { margin: 1.3em 0; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; background: var(--table-head); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.code { margin: 1.3em 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2); background: var(--code-bg); }
.code figcaption { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: var(--code-head); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; } .code-dots i:nth-child(3) { background: #28c840; }
.code-lang { font: 700 10.5px/1 var(--geo); letter-spacing: .16em; color: #8f9bc0; }
.code-title { font-size: 12px; color: #aab4d4; }
.code-copy { display: none; margin-left: auto; padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #c8d0ea; font-size: 12px; cursor: pointer; }
.js .code-copy { display: inline-block; }
.code-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.code pre { margin: 0; padding: 14px 18px 16px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: var(--code-text); tab-size: 4; }
.code pre code { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: pre; overflow-wrap: normal; }
.tk-c { color: #6d7a9e; font-style: italic; } .tk-s { color: #a5e3a0; } .tk-n { color: #f8b886; } .tk-k { color: #ff9cc4; } .tk-t { color: #86c8ff; } .tk-a { color: #f3d58a; }
.post-foot { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.post-end { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.post-end img { width: 64px; height: 64px; flex: none; padding: 2px; border-radius: 50%; object-fit: cover; background: conic-gradient(from 200deg, var(--c), color-mix(in srgb, var(--c) 25%, #fff), var(--c)); }
.post-end p { margin: 0; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.post-end b { font-family: var(--display); font-weight: 400; color: var(--c); letter-spacing: .04em; }
.post-end a { color: var(--accent-2); }
.pn-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pn { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; }
.pn.next { text-align: right; }
.pn small { font-size: 12px; color: var(--muted); }
.pn b { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.pn:not(.none):hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.pn.none b { color: var(--muted); font-weight: 400; }

/* ---------- gallery ---------- */
.gallery-hero, .about-hero { position: relative; isolation: isolate; margin-top: 22px; padding: 34px 40px; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #101836; }
.gh-bg, .ah-bg { position: absolute; inset: 0; z-index: -2; background: url("/blog/assets/img/banner-saber.webp") 70% 32% / cover; }
.gallery-hero::before, .about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 30, .95) 0%, rgba(8, 12, 30, .8) 44%, rgba(8, 12, 30, .2) 100%); }
.gh-text, .ah-text { max-width: 560px; color: #fff; }
.gallery-hero .eyebrow, .about-hero .eyebrow { color: #ffb3cf; }
.gallery-hero h1, .about-hero h1 { margin: 12px 0 0; font: 400 clamp(30px, 3.4vw, 44px)/1.15 var(--display); letter-spacing: .06em; }
.gh-text p, .ah-text p { margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: 14.5px; line-height: 1.8; }
.gh-count { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.gh-count span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.gh-count b { margin-right: 6px; font: 700 24px/1 var(--geo); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); font: 400 14px/1 var(--display); letter-spacing: .06em; cursor: pointer; }
.tab em { font: 600 11px/1 var(--geo); font-style: normal; color: var(--muted); }
.tab[aria-selected="true"] { color: #fff; border-color: transparent; background: var(--grad-btn); }
.tab[aria-selected="true"] em { color: rgba(255, 255, 255, .85); }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.sv-card { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(165deg, color-mix(in srgb, var(--cc) 72%, #0a1026) 0%, #0a1026 78%); color: #fff; text-align: left; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s; }
.sv-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/blog/assets/img/fuji-cover.webp") 50% 30% / cover; opacity: .2; mix-blend-mode: luminosity; }
.sv-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(80% 55% at 50% 30%, rgba(255, 255, 255, .16), transparent 70%), repeating-linear-gradient(120deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 16px); pointer-events: none; }
.sv-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cc) 70%, #fff 10%); box-shadow: 0 18px 40px color-mix(in srgb, var(--cc) 30%, transparent); }
.sv-card .sv { position: absolute; z-index: 1; left: 50%; bottom: 0; width: auto; max-width: none; height: 90%; translate: -50% 0; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); transition: transform .5s cubic-bezier(.2, .8, .3, 1); transform-origin: 50% 100%; }
.sv-card:hover .sv { transform: scale(1.04); }
.sv-card .cls { position: absolute; z-index: 3; top: 10px; left: 10px; width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.state { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.sv-card .state { position: absolute; z-index: 3; top: 13px; right: 12px; }
.state.active { color: #052e1c; background: #6ff0b8; }
.state.standby { color: #e6e9f5; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); }
.sv-card .info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 46px 14px 13px; background: linear-gradient(0deg, rgba(6, 9, 22, .95) 0%, rgba(6, 9, 22, .75) 55%, rgba(6, 9, 22, 0) 100%); }
.sv-card .info b { font: 400 17px/1.2 var(--display); letter-spacing: .04em; }
.sv-card .info small { font: 600 9.5px/1.3 var(--geo); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.sv-card .info em { font-size: 12px; font-style: normal; color: rgba(255, 255, 255, .82); }
.sv-card .info q { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: rgba(255, 255, 255, .66); quotes: "「" "」"; }
.chibi-sec { margin-top: 34px; }
.chibi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chibi { display: grid; justify-items: center; gap: 8px; margin: 0; padding: 14px 8px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.chibi img { height: 120px; width: auto; object-fit: contain; }
.chibi figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.sv-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--text); overflow: visible; }
.sv-dialog::backdrop { background: rgba(4, 6, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.svd { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: calc(100vh - 24px); overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: var(--shadow-lg); }
.svd-art { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; min-height: 520px; padding: 24px 16px 0; background: linear-gradient(165deg, color-mix(in srgb, var(--cc, #3d7bd9) 70%, #0a1026) 0%, #0a1026 80%); }
.svd-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/blog/assets/img/fuji-cover.webp") 50% 30% / cover; opacity: .22; mix-blend-mode: luminosity; }
.svd-art img { display: block; max-width: 100%; max-height: calc(100vh - 80px); height: 560px; width: auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45)); }
.svd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 28px 28px 22px; overflow-y: auto; }
.svd-top { display: flex; align-items: center; gap: 10px; }
.svd-top .cls { width: 34px; height: 34px; }
.svd-cls { font: 700 12px/1 var(--geo); letter-spacing: .16em; color: var(--muted); }
.svd-top .state { margin-left: auto; }
.svd-top .state.standby { color: var(--text-2); background: var(--input); border-color: var(--line-2); }
.svd-info h2 { margin: 6px 0 0; font: 400 30px/1.2 var(--display); letter-spacing: .05em; }
.svd-en { margin: -4px 0 0; font: 600 12px/1.3 var(--geo); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svd-facts { display: grid; gap: 8px; margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.svd-facts div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.svd-facts div[hidden] { display: none; }
.svd-facts dt { color: var(--muted); }
.svd-facts dd { margin: 0; color: var(--text); }
.svd-says { display: grid; gap: 8px; }
.say { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.6; }
.say span { flex: none; margin-top: 2px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; }
.say.ok span { background: #2bb37a; } .say.busy span { background: #d99a1e; } .say.off span { background: #8b93ad; }
.say q { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); quotes: "「" "」"; }
.svd-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
#svd-idx { font: 600 12px/1 var(--geo); color: var(--muted); }
.svd-close { position: absolute; z-index: 5; top: 12px; right: 12px; background: var(--glass); }

/* ---------- feed / tags / about ---------- */
.timeline { position: relative; display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 104px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: .35; }
.tl-item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 30px; align-items: start; }
.tl-item::before { content: ""; position: absolute; left: 99px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.tl-item time { padding-top: 9px; text-align: right; font: 600 13px/1.2 var(--geo); color: var(--muted); }
.tl-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; transition: border-color .2s, transform .2s; }
.tl-card:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.tl-card b { font-size: 16px; color: var(--text); }
.tl-card > span:last-child { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.cat-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.cat-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; transition: border-color .2s; }
.cat-line:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.cat-line img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--c); }
.cat-line b { display: block; font: 400 16px/1.2 var(--display); letter-spacing: .05em; color: var(--c); }
.cat-line small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.cat-line em { font: 600 12px/1 var(--geo); font-style: normal; color: var(--muted); }
.sub-h { margin: 28px 0 12px; font: 400 18px/1.2 var(--display); letter-spacing: .05em; }
.ah-text p { font-size: 15px; }
.about { margin-top: 18px; }
.crew-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-2); }
.crew { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; }
.crew img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--grad); transition: transform .25s; }
.crew:hover img { transform: translateY(-3px) scale(1.06); }
.crew b { font-size: 12px; line-height: 1.3; color: var(--text); }
.crew small { font-size: 10.5px; line-height: 1.3; color: var(--muted); }

/* ---------- search ---------- */
.search { width: min(640px, calc(100% - 24px)); max-height: min(640px, calc(100% - 40px)); margin: 9vh auto auto; padding: 0; border: 0; border-radius: 18px; background: transparent; color: var(--text); overflow: visible; }
.search::backdrop { background: rgba(4, 6, 16, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-box { display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 80px)); overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: var(--shadow-lg); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-field .i { width: 20px; height: 20px; color: var(--accent); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { flex: 1; min-height: 120px; padding: 8px; overflow-y: auto; }
.sr-group { margin: 8px 8px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sr-hot { padding: 0 8px 6px; }
.sr-note, .sr-none { margin: 22px 12px; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.8; }
.sr-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
.sr-item.on, .sr-item:hover { background: var(--accent-soft); }
.sr-item img, .sr-ico { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.sr-ico { display: grid; place-items: center; font: 400 15px/1 var(--display); color: #fff; background: var(--c); }
.sr-main { display: grid; gap: 2px; min-width: 0; }
.sr-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.sr-kind { font-style: normal; color: var(--c); font-weight: 700; }
.sr-main b { overflow: hidden; font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.sr-snip { overflow: hidden; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.sr-main mark { padding: 0 2px; border-radius: 3px; color: inherit; background: rgba(255, 143, 183, .3); }
.search-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.search-foot kbd { margin-right: 3px; }
.search-tip { margin-left: auto; }
.search-empty-art { position: absolute; left: 50%; bottom: 100%; width: 130px; margin-bottom: -16px; transform: translateX(-50%); pointer-events: none; }
.search-empty-art[hidden] { display: none; }

/* ---------- footer / floating ---------- */
.footer { position: relative; margin-top: 70px; border-top: 1px solid var(--line); background: var(--footer-bg); }
.footer-chibi { position: absolute; right: 7%; top: -66px; display: flex; align-items: flex-end; gap: 2px; pointer-events: none; }
.footer-chibi img { height: 70px; width: auto; }
.footer-chibi img:nth-child(2) { height: 64px; }
.footer-in { display: grid; gap: 12px; padding: 26px 0 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand b { font: 400 17px/1 var(--display); letter-spacing: .06em; }
.footer-brand > span:last-child { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-links .i { width: 14px; height: 14px; }
.footer-copy { margin: 0; font-size: 12px; color: var(--muted); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; cursor: pointer; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .i { width: 20px; height: 20px; }
.peek { position: fixed; z-index: 39; right: 0; bottom: 30%; width: 64px; height: auto; transform: translateX(105%); transition: transform .6s cubic-bezier(.2, .9, .3, 1.2); cursor: pointer; filter: drop-shadow(-4px 4px 10px rgba(0, 0, 0, .25)); }
.peek.show { transform: translateX(8%); }
.peek.show:hover { transform: translateX(0) rotate(-4deg); }

/* ---------- responsive ---------- */
@media (min-width: 1800px) {
  .wrap { width: min(1720px, 100% - 96px); }
  .hero { min-height: 580px; }
  .stage { min-height: 580px; }
  .hero-text { padding-left: 64px; }
  .hero h1 { font-size: clamp(60px, 3.5vw, 78px); }
  .lead { font-size: 16.5px; }
  .stats b { font-size: 31px; }
  .stage-say { font-size: 15px; max-width: 340px; }
  .face-btn { width: 46px; height: 46px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; }
  .grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .feed3 > :nth-child(4), .posts-grid > :nth-child(n+7) { display: flex; }
  .cat-face { width: 58px; height: 58px; }
  .cat b { font-size: 16.5px; }
  .layout3 { grid-template-columns: 250px minmax(0, 1fr) 310px; }
  .pg-post .layout3 { grid-template-columns: 250px minmax(0, 980px) 310px; justify-content: center; }
  .prose { font-size: 16.5px; }
  .sv-grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
  .wrap.narrow { width: min(1100px, 100% - 96px); }
}
@media (max-width: 1360px) {
  .search-btn { width: 180px; }
  .nav-links a { padding: 0 10px; }
}
@media (max-width: 1240px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layout3 { grid-template-columns: minmax(0, 1fr) 270px; }
  .side-left { display: none; }
  .search-btn span { display: none; }
  .search-btn { width: auto; }
  .peek { display: none; }
}
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-more { display: block; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero-text { padding-left: 34px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed3 > :nth-child(3) { display: none; }
  .crew-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chibi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout3 { grid-template-columns: minmax(0, 1fr); }
  .side-right { position: static; }
  .w-toc { display: none; }
  .toc-mobile { display: block; }
  .main-panel { padding: 22px 20px 26px; }
  .svd { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .svd-art { min-height: 0; height: 46vh; }
  .svd-art img { height: 100%; }
  .svd-info { overflow: visible; }
  .cat-lines { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wrap, .wrap.narrow { width: calc(100% - 24px); }
  .nav-in { gap: 8px; height: 58px; }
  .logo-txt small { display: none; }
  .shop-btn span { display: none; }
  .shop-btn { padding: 0 10px; }
  .search-btn kbd { display: none; }
  .search-btn { padding: 0 9px; }
  .progress { top: 58px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-top: 12px; border-radius: 18px; }
  .hero-bg { background-image: url("/assets/shop/bg-fuji-sakura-tall-v1.webp"); background-position: 50% 30%; }
  [data-theme="dark"] .hero::before { background: linear-gradient(180deg, rgba(9, 14, 28, .94) 0%, rgba(9, 14, 28, .82) 44%, rgba(9, 14, 28, .2) 72%, rgba(9, 14, 28, .55) 100%); }
  [data-theme="light"] .hero::before { background: linear-gradient(180deg, rgba(248, 246, 255, .96) 0%, rgba(248, 246, 255, .85) 44%, rgba(248, 246, 255, .1) 72%, rgba(248, 246, 255, .5) 100%); }
  .hero-text { padding: 26px 20px 4px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .lead { font-size: 14px; line-height: 1.8; }
  .lead br { display: none; }
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
  .stats li { padding: 0 8px; }
  .stats b { font-size: 21px; }
  .stats span { font-size: 11px; }
  .cta { margin-top: 20px; }
  .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
  .stage { min-height: 400px; }
  .stage-fig { inset: 64px 0 64px 0; }
  .stage-say { top: 8px; left: 16px; right: 16px; max-width: none; font-size: 13px; }
  .stage-plate { left: 12px; bottom: 70px; max-width: calc(100% - 24px); }
  .stage-faces { justify-content: flex-start; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px; bottom: 6px; }
  .stage-faces::-webkit-scrollbar { display: none; }
  .face-btn { width: 36px; height: 36px; }
  .cats { gap: 8px; }
  .cat { padding: 12px 4px 10px; gap: 6px; }
  .cat-face { width: 42px; height: 42px; }
  .cat b { font-size: 13px; }
  .cat small { font-size: 10.5px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .feed3 > :nth-child(3) { display: flex; }
  .home-side { grid-template-columns: minmax(0, 1fr); }
  .quote { flex-wrap: wrap; padding: 18px 18px; gap: 12px; }
  .quote-en { margin: 0; text-align: left; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pn-wrap { grid-template-columns: minmax(0, 1fr); }
  .pn.next { text-align: left; }
  .prose { font-size: 15.5px; line-height: 1.9; }
  .prose h2 { font-size: 20px; }
  .gallery-hero, .about-hero { padding: 24px 20px; }
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sv-card .info { padding: 36px 10px 10px; }
  .sv-card .info b { font-size: 15px; }
  .sv-card .info q { display: none; }
  .chibi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chibi img { height: 84px; }
  .crew-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; }
  .tl-item::before { left: 2px; top: 4px; }
  .tl-item time { padding-top: 0; text-align: left; }
  .footer-chibi { right: 4%; top: -52px; }
  .footer-chibi img { height: 54px; }
  .footer-chibi img:nth-child(2) { height: 50px; }
  .search-tip { display: none; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .petals { display: none; }
}
