
/* =========================================================
   大薯ki · 个人静态博客
   配色参考：藤田琴音 #F9CC3C × 薰衣草 #C9B6E4
   ========================================================= */

:root {
  --avatar: url("avatar.jpg");

  --bg: #fff9ef;
  --bg-2: #f6efff;
  --ink: #2d203d;
  --ink-soft: #665675;
  --muted: #8a789b;
  --line: rgba(56, 38, 76, .12);
  --line-strong: rgba(56, 38, 76, .22);
  --surface: rgba(255, 253, 248, .64);
  --surface-solid: #fffdf8;
  --surface-2: rgba(255, 255, 255, .54);
  --glass: rgba(255, 251, 243, .7);
  --glass-strong: rgba(255, 251, 243, .94);

  --butter: #f9cc3c;
  --butter-soft: #fff0b8;
  --butter-ink: #7e5f00;
  --lav: #c9b6e4;
  --lav-soft: #eee6fa;
  --lav-deep: #7b5ea7;
  --coral: #e85d4a;
  --sky: #7fb5d9;
  --green: #3f8b66;

  --strip-bg: #2a1f3a;
  --strip-ink: #fff7e7;
  --polaroid: #fffdf8;
  --polaroid-ink: #5a4a68;

  --shadow: 0 24px 70px rgba(77, 53, 105, .11);
  --shadow-sm: 0 10px 30px rgba(77, 53, 105, .08);
  --watermark: rgba(123, 94, 167, .13);
  --grid-line: rgba(80, 56, 107, .075);

  --radius: 28px;
  --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "YouYuan", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #15101f;
  --bg-2: #1d142b;
  --ink: #f7efff;
  --ink-soft: #c8b9da;
  --muted: #9c8bb1;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .22);
  --surface: rgba(34, 25, 48, .68);
  --surface-solid: #221930;
  --surface-2: rgba(255, 255, 255, .055);
  --glass: rgba(24, 18, 35, .72);
  --glass-strong: rgba(24, 18, 35, .94);

  --butter: #ffd95c;
  --butter-soft: #3f331c;
  --butter-ink: #ffd95c;
  --lav: #bda4e4;
  --lav-soft: #2b203e;
  --lav-deep: #d4bcf8;
  --coral: #ff7e6a;
  --sky: #8cc4e8;
  --green: #63c894;

  --shadow: 0 26px 80px rgba(0, 0, 0, .36);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .28);
  --watermark: rgba(255, 255, 255, .09);
  --grid-line: rgba(255, 255, 255, .05);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  transition: color .4s ease;
}

body,
button,
input {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input {
  font: inherit;
}

img, svg {
  display: block;
}

::selection {
  background: var(--butter);
  color: #2d203d;
}

:focus-visible {
  outline: 3px solid var(--lav-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- helpers ---------- */

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

main {
  overflow-x: clip;
}

#top,
.section {
  scroll-margin-top: 96px;
}

button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .8rem;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon {
  width: 1.2em;
  height: 1.2em;
}

.coral {
  color: var(--coral);
}

.muted {
  color: var(--muted);
}

/* ---------- background ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 8% 4%, rgba(201, 182, 228, .58), transparent 72%),
    radial-gradient(45% 40% at 94% 8%, rgba(249, 204, 60, .3), transparent 70%),
    radial-gradient(50% 42% at 82% 92%, rgba(232, 93, 74, .12), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  transition: background .5s ease;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: .6;
  will-change: transform;
}

.blob-a {
  width: 46vw;
  height: 46vw;
  left: -13vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(201, 182, 228, .85), transparent 66%);
  animation: driftA 26s ease-in-out infinite;
}

.blob-b {
  width: 32vw;
  height: 32vw;
  right: -8vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(249, 204, 60, .55), transparent 68%);
  animation: driftB 31s ease-in-out infinite;
}

.blob-c {
  width: 42vw;
  height: 42vw;
  right: 4vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(232, 93, 74, .27), transparent 68%);
  animation: driftC 38s ease-in-out infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 54% at 50% 12%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 54% at 50% 12%, #000 10%, transparent 78%);
  opacity: .8;
}

[data-theme="dark"] .site-bg {
  background:
    radial-gradient(50% 42% at 8% 4%, rgba(123, 94, 167, .3), transparent 72%),
    radial-gradient(40% 36% at 94% 8%, rgba(249, 204, 60, .1), transparent 70%),
    radial-gradient(48% 40% at 82% 92%, rgba(255, 126, 106, .08), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
}

[data-theme="dark"] .bg-blob {
  opacity: .34;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .042;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

[data-theme="dark"] .grain {
  opacity: .07;
  mix-blend-mode: soft-light;
}

/* ---------- cursor & progress ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 250;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  transition: opacity .2s ease, background-color .3s ease;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--lav-deep);
  transition: width .18s ease, height .18s ease, background-color .18s ease, border-color .18s ease, opacity .2s ease;
  will-change: left, top;
}

html.cursor-ready .cursor-dot,
html.cursor-ready .cursor-ring {
  opacity: 1;
}

html.cursor-ready body,
html.cursor-ready a,
html.cursor-ready button,
html.cursor-ready summary {
  cursor: none;
}

html.cursor-ready input {
  cursor: text;
}

.cursor-ring.is-hover {
  width: 54px;
  height: 54px;
  border-color: var(--butter);
  background: rgba(249, 204, 60, .13);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--butter), var(--coral) 52%, var(--lav-deep));
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 120;
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 8px 30px rgba(77, 53, 105, .04);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transform: translateX(-50%);
  transition: top .3s ease, background-color .4s ease, border-color .4s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  top: 10px;
  background: var(--glass-strong);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--butter), #ffe9a2);
  color: #2d203d;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(45, 32, 61, .08), 0 5px 14px rgba(249, 204, 60, .26);
  transform: rotate(-8deg);
}

.brand-name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .49rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 600;
  transition: color .2s ease, background-color .2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-soft);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .25s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--lav-deep);
  background: var(--lav-soft);
  transform: rotate(10deg);
}

.theme-toggle .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .3s ease, color .3s ease;
}

.header-cta span {
  transition: transform .25s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 32, 61, .18);
}

.header-cta:hover span {
  transform: translate(2px, -2px);
}

[data-theme="dark"] .header-cta {
  background: var(--butter);
  color: #2d203d;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(132px, 15vh, 190px) 0 76px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow .slash {
  color: var(--lav-deep);
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  opacity: .5;
  animation: pulseRing 2.2s ease-out infinite;
}

.hero-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: clamp(22px, 4vh, 38px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 12.6vw, 10.8rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .78;
}

.title-zh {
  display: inline-block;
}

.title-ki {
  position: relative;
  display: inline-block;
  margin-left: .015em;
  font-family: var(--font-serif);
  font-size: .73em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .9;
  background: linear-gradient(110deg, var(--lav-deep) 8%, var(--coral) 46%, var(--lav-deep) 82%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

.title-ki::after {
  content: "";
  position: absolute;
  left: -2%;
  right: .05em;
  bottom: .055em;
  z-index: -1;
  height: .12em;
  border-radius: 999px;
  background: var(--butter);
  transform: rotate(-1.5deg);
}

.title-dot {
  color: var(--coral);
  font-size: .46em;
  line-height: 1;
  transform: translateY(-.06em);
}

.hero-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .72rem;
  margin-top: clamp(22px, 3.6vh, 32px);
  color: var(--lav-deep);
  font-family: var(--font-mono);
  font-size: clamp(.68rem, .95vw, .8rem);
  font-weight: 600;
  letter-spacing: .12em;
}

.hero-subtitle i {
  color: var(--butter);
  font-size: .65rem;
  font-style: normal;
}

.hero-intro {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(.94rem, 1.2vw, 1.04rem);
  line-height: 1.95;
}

.hero-intro-sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 12px 28px rgba(45, 32, 61, .2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(45, 32, 61, .24);
}

.btn-primary:hover svg {
  transform: translateY(3px);
}

[data-theme="dark"] .btn-primary {
  background: var(--butter);
  color: #2d203d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--lav-deep);
  background: var(--lav-soft);
}

.btn-ghost:hover svg {
  transform: rotate(-10deg) scale(1.08);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .61rem;
  letter-spacing: .02em;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.tag:hover {
  color: var(--ink);
  border-color: var(--butter);
  background: var(--butter-soft);
}

/* ---------- portrait ---------- */

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.portrait-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1000px;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: spin 75s linear infinite reverse;
  pointer-events: none;
}

.portrait-halo {
  position: absolute;
  width: 73%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(249, 204, 60, .88), transparent 54%),
    radial-gradient(circle at 70% 72%, rgba(201, 182, 228, .92), transparent 64%),
    radial-gradient(circle at 60% 30%, rgba(232, 93, 74, .22), transparent 52%);
  filter: blur(14px);
  opacity: .95;
  animation: haloFloat 9s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  width: 108%;
  height: 108%;
  animation: spin 44s linear infinite;
  pointer-events: none;
}

.orbit svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit text {
  fill: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8.2px;
  font-weight: 500;
  letter-spacing: .28em;
  opacity: .7;
}

.polaroid {
  position: relative;
  z-index: 3;
  width: min(72%, 365px);
  padding: 13px 13px 0;
  border-radius: 9px;
  background: var(--polaroid);
  box-shadow:
    0 30px 64px rgba(61, 42, 84, .23),
    0 2px 0 rgba(61, 42, 84, .08);
  transform: rotate(-3.5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.polaroid:hover {
  box-shadow:
    0 38px 82px rgba(61, 42, 84, .28),
    0 2px 0 rgba(61, 42, 84, .08);
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 4;
  width: 112px;
  height: 30px;
  background: rgba(249, 204, 60, .8);
  clip-path: polygon(2% 8%, 97% 0, 100% 90%, 4% 100%);
  box-shadow: 0 2px 6px rgba(78, 57, 25, .12);
  transform: translateX(-50%) rotate(-2deg);
}

.polaroid-photo {
  aspect-ratio: 1;
  border-radius: 4px;
  background-color: #f7f0e5;
  background-image: var(--avatar);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(61, 42, 84, .06);
  filter: saturate(1.03) contrast(1.015);
}

.polaroid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 15px;
  color: var(--polaroid-ink);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
}

.polaroid .online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #347254;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.polaroid .online i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #48a978;
  box-shadow: 0 0 0 3px rgba(72, 169, 120, .13);
}

.speech {
  position: absolute;
  top: 7%;
  right: -1%;
  z-index: 5;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: var(--surface-solid);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transform: rotate(3deg);
  animation: bob 5.5s ease-in-out infinite;
}

.speech-tail {
  position: absolute;
  left: 13px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: var(--surface-solid);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.whale-sticker {
  position: absolute;
  left: 0;
  bottom: 5%;
  z-index: 5;
  display: grid;
  place-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #2a1f3a;
  color: #fff7e7;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-10deg);
  box-shadow: 0 16px 32px rgba(42, 31, 58, .24);
  animation: bob 7s ease-in-out infinite reverse;
}

.whale-sticker::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 50%;
}

.whale-sticker small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 247, 231, .52);
  font-family: var(--font-mono);
  font-size: .43rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.2;
}

.status-mini {
  position: absolute;
  right: 0;
  bottom: 3%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transform: rotate(2deg);
  animation: bob 6.5s ease-in-out infinite .8s;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #48a978;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(72, 169, 120, .5);
  border-radius: 50%;
  animation: pulseRing 2.4s ease-out infinite;
}

.status-mini b {
  display: block;
  color: var(--ink);
  font-size: .7rem;
  line-height: 1.25;
}

.status-mini span:not(.status-dot) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .03em;
  line-height: 1.3;
}

.spark {
  position: absolute;
  z-index: 5;
  color: var(--butter);
  font-size: 1.35rem;
  line-height: 1;
  animation: twinkle 3.8s ease-in-out infinite;
  pointer-events: none;
}

.s1 {
  top: 5%;
  left: 5%;
}

.s2 {
  right: 7%;
  bottom: 24%;
  color: var(--lav-deep);
  font-size: .9rem;
  animation-delay: 1.2s;
}

.s3 {
  left: 13%;
  top: 36%;
  color: var(--coral);
  font-size: .95rem;
  animation-delay: .5s;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .14em;
  transform: translateX(-50%);
}

.mouse {
  position: relative;
  display: block;
  width: 16px;
  height: 25px;
  border: 1.3px solid var(--muted);
  border-radius: 9px;
}

.mouse i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--coral);
  transform: translateX(-50%);
  animation: scrollDot 1.7s ease-in-out infinite;
}

.hero-watermark {
  position: absolute;
  right: -2.5%;
  bottom: 0.03em;
  z-index: 0;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(14rem, 32vw, 32rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .62;
  -webkit-text-stroke: 1px var(--watermark);
  transform: rotate(-5deg);
  pointer-events: none;
  user-select: none;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: var(--strip-bg);
  color: var(--strip-ink);
  transform: rotate(-1.1deg) scale(1.02);
  box-shadow: 0 16px 40px rgba(42, 31, 58, .14);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee-group span {
  padding: 0 30px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.marquee-group b {
  color: var(--butter);
  font-size: .58rem;
  font-weight: 400;
}

/* ---------- section heading ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(78px, 9.5vw, 132px) 0;
}

.section-head {
  margin-bottom: clamp(30px, 4.5vw, 46px);
}

.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kicker.en {
  color: var(--ink-soft);
  opacity: .55;
}

.kicker.light {
  color: rgba(255, 255, 255, .48);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 18px;
}

.section-title-row h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .95;
}

.section-title-row h2 .accent {
  color: var(--coral);
}

.section-title-row h2 .outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--lav-deep);
}

.section-desc {
  max-width: 350px;
  padding-bottom: .25rem;
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.85;
  text-align: right;
}

/* ---------- reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s cubic-bezier(.2, .75, .25, 1),
    transform .8s cubic-bezier(.2, .75, .25, 1);
  transition-delay: var(--delay, 0ms);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- cards / bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color .3s ease, background-color .4s ease, box-shadow .3s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card-label {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-label.light {
  color: rgba(255, 255, 255, .48);
}

/* ---------- about ---------- */

.intro-card {
  grid-column: span 7;
}

.intro-lead {
  margin: 20px 0 18px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.45vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.48;
}

.intro-lead .name {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.intro-lead .name::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.09em;
  bottom: .03em;
  z-index: -1;
  height: .32em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--butter), rgba(201, 182, 228, .9));
  transform: rotate(-1.2deg);
}

.potato {
  position: relative;
  color: var(--muted);
  cursor: help;
  text-decoration: line-through;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}

.potato::after {
  content: "你才土豆";
  position: absolute;
  left: 50%;
  bottom: 135%;
  z-index: 10;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px) rotate(-2deg);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.potato:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

.intro-card > p:not(.intro-lead) {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .89rem;
  line-height: 1.95;
}

.pullquote {
  margin: 24px 0 0;
  padding: 4px 0 4px 17px;
  border-left: 3px solid var(--butter);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.9;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.mini-stat {
  min-width: 0;
}

.mini-stat .num {
  display: block;
  color: var(--lav-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.mini-stat .lab {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .57rem;
  line-height: 1.45;
  letter-spacing: .06em;
}

.terminal-card {
  display: flex;
  grid-column: span 5;
  flex-direction: column;
  padding: 0;
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(155deg, #2c203d 0%, #21182f 56%, #35264b 100%);
  color: #f8f1ff;
  box-shadow: 0 24px 60px rgba(33, 24, 47, .22);
}

.terminal-card:hover {
  border-color: rgba(255, 255, 255, .16);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .45);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
}

.win-dots {
  display: flex;
  gap: 4px;
}

.win-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.win-dots i:nth-child(1) {
  background: #e85d4a;
}

.win-dots i:nth-child(2) {
  background: #f9cc3c;
}

.win-dots i:nth-child(3) {
  background: #6bc18a;
}

.terminal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.8;
}

.terminal-body p {
  margin: 0;
}

.terminal-body .prompt {
  margin-right: 7px;
  color: var(--butter);
}

.terminal-body .res {
  padding-left: 14px;
  margin-bottom: 9px;
  color: #ccb9e9;
}

.terminal-cursor {
  display: flex;
  align-items: center;
  min-height: 18px;
}

.terminal-quote {
  margin-top: auto;
  padding-top: 22px;
  color: rgba(255, 255, 255, .64);
  font-family: var(--font-serif);
  font-size: .9rem;
  line-height: 1.85;
}

.terminal-quote small {
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .04em;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--butter);
  animation: blink 1.1s steps(1) infinite;
}

.terminal-foot {
  padding: 13px 22px;
  border-top: 1px dashed rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .4);
  font-size: .64rem;
  line-height: 1.6;
}

.trait-card {
  grid-column: span 4;
  min-height: 210px;
}

.trait-card h3 {
  margin: 14px 0 9px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.trait-card p {
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.9;
}

.trait-index {
  position: absolute;
  top: 19px;
  right: 21px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .08em;
}

.trait-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--lav-soft);
  color: var(--lav-deep);
}

.trait-icon svg {
  width: 21px;
  height: 21px;
}

.trait-icon.icon-butter {
  background: var(--butter-soft);
  color: var(--butter-ink);
}

.trait-icon.icon-coral {
  background: rgba(232, 93, 74, .13);
  color: var(--coral);
}

.relation-card {
  grid-column: span 7;
  background:
    linear-gradient(118deg, rgba(249, 204, 60, .2), var(--surface) 43%, rgba(201, 182, 228, .24));
}

.relation-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 17px;
}

.avatar-pair {
  display: flex;
  align-items: center;
  flex: none;
}

.avatar-chip {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.avatar-her,
.mini-avatar,
.chat-avatar {
  background-color: #f4e8d2;
  background-image: var(--avatar);
  background-position: center;
  background-size: cover;
}

.avatar-k {
  margin-left: -9px;
  background: var(--lav-deep);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.pair-heart {
  margin: 0 7px;
  color: var(--coral);
  font-size: .78rem;
  animation: heartbeat 2.8s ease-in-out infinite;
}

.relation-copy {
  min-width: 0;
}

.relation-copy h3 {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.55;
}

.relation-copy p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.85;
}

.relation-note {
  font-family: var(--font-mono);
  font-size: .65rem !important;
  letter-spacing: .01em;
  color: var(--lav-deep) !important;
}

.relation-note span {
  color: var(--butter);
  margin-right: 4px;
}

.faq-card {
  grid-column: span 5;
}

.faq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sticky-note {
  display: inline-block;
  margin-top: -5px;
  padding: 6px 12px;
  background: var(--butter);
  color: #4a3700;
  font-family: var(--font-serif);
  font-size: .63rem;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(3deg);
  clip-path: polygon(2% 5%, 98% 0, 100% 93%, 0 100%);
  box-shadow: 0 4px 10px rgba(78, 57, 25, .1);
}

.faq-card h3 {
  margin: 12px 0 12px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.faq-list {
  border-top: 1px dashed var(--line);
}

.faq-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .78rem;
  line-height: 1.7;
}

.faq-q {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .62rem;
}

.faq-a {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.faq-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.7;
}

/* ---------- likes ---------- */

.likes-grid {
  align-items: stretch;
}

.like-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(23px, 2.7vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.like-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.like-games {
  grid-column: span 5;
  min-height: 340px;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, #2b1f3d 0%, #3e2d53 60%, #4b3761 100%);
  color: #fbf4ff;
  box-shadow: 0 24px 60px rgba(43, 31, 61, .24);
}

.like-games:hover {
  border-color: rgba(255, 255, 255, .18);
}

.like-models {
  grid-column: span 4;
}

.like-music {
  grid-column: span 3;
}

.like-tech {
  grid-column: span 4;
}

.like-aesthetic {
  grid-column: span 4;
}

.like-food {
  grid-column: span 4;
}

.like-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.like-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  border-radius: 13px;
  background: var(--lav-soft);
  color: var(--lav-deep);
}

.like-icon svg {
  width: 21px;
  height: 21px;
}

.like-icon.icon-butter {
  background: var(--butter-soft);
  color: var(--butter-ink);
}

.like-icon.icon-coral {
  background: rgba(232, 93, 74, .13);
  color: var(--coral);
}

.like-icon.icon-lav {
  background: var(--lav-soft);
  color: var(--lav-deep);
}

.like-games .like-icon {
  background: rgba(255, 255, 255, .08);
  color: var(--butter);
}

.like-card h3 {
  margin: 20px 0 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.35;
}

.like-games h3 {
  margin-top: 24px;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.25;
}

.like-card p {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.9;
}

.like-games p {
  max-width: 88%;
  color: rgba(255, 255, 255, .7);
}

.like-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.like-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .57rem;
  line-height: 1.5;
}

.like-games .like-tags span {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .07);
  color: #e9dcf7;
}

.like-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .02em;
}

.like-now .status-dot {
  width: 6px;
  height: 6px;
  background: var(--butter);
}

.like-now .status-dot::after {
  border-color: rgba(249, 204, 60, .45);
}

.bg-icon {
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 205px;
  height: 205px;
  color: rgba(255, 255, 255, .07);
  transform: rotate(-12deg);
  pointer-events: none;
}

.mini-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--lav-deep);
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.5;
}

.mini-project {
  display: block;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px dashed var(--line);
}

.mini-project span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .49rem;
  letter-spacing: .11em;
}

.mini-project b {
  color: var(--ink);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.6;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px dashed var(--line);
}

.np-play {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  background: var(--butter);
  color: #3d2d00;
  font-size: .48rem;
  line-height: 1;
  padding-left: 1px;
}

.np-copy {
  min-width: 0;
  flex: 1;
}

.np-copy b {
  display: block;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
}

.np-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.np-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--lav-deep);
  animation: equalize 1s ease-in-out infinite alternate;
}

.np-bars i:nth-child(1) { height: 42%; animation-delay: -.2s; }
.np-bars i:nth-child(2) { height: 88%; animation-delay: -.55s; }
.np-bars i:nth-child(3) { height: 60%; animation-delay: -.1s; }
.np-bars i:nth-child(4) { height: 100%; animation-delay: -.4s; }

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .59rem;
}

.code-chip span {
  color: var(--coral);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin: 5px 0 1px;
}

.eq span {
  width: 3px;
  height: 35%;
  border-radius: 3px;
  background: linear-gradient(to top, var(--lav), var(--butter));
  animation: equalize 1.05s ease-in-out infinite alternate;
}

.eq span:nth-child(2) { height: 62%; animation-delay: -.25s; }
.eq span:nth-child(3) { height: 44%; animation-delay: -.55s; }
.eq span:nth-child(4) { height: 86%; animation-delay: -.1s; }
.eq span:nth-child(5) { height: 53%; animation-delay: -.7s; }
.eq span:nth-child(6) { height: 95%; animation-delay: -.35s; }
.eq span:nth-child(7) { height: 44%; animation-delay: -.85s; }
.eq span:nth-child(8) { height: 72%; animation-delay: -.15s; }
.eq span:nth-child(9) { height: 36%; animation-delay: -.6s; }
.eq span:nth-child(10) { height: 58%; animation-delay: -.4s; }

.swatches {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.swatches span {
  flex: 1;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 7px;
  background: var(--c);
  transition: flex .3s ease, transform .3s ease;
}

.swatches span:hover {
  flex: 2.2;
  transform: translateY(-2px);
}

.swatch-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .42rem;
  letter-spacing: .01em;
}

.swatch-labels span {
  flex: 1;
  min-width: 0;
}

.food-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

.taste {
  margin-top: auto;
  padding-top: 18px;
}

.taste-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .54rem;
}

.taste-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.taste-track span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--butter), var(--coral));
}

/* ---------- recent ---------- */

.now-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, .72fr);
  align-items: start;
  gap: 18px;
}

.posts {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.post-card {
  position: relative;
  padding: clamp(22px, 2.7vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.post-featured {
  padding: clamp(25px, 3.2vw, 36px);
  background:
    linear-gradient(125deg, rgba(249, 204, 60, .2), var(--surface) 38%, rgba(201, 182, 228, .3));
}

.post-featured::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -35px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 184, .8), transparent 68%);
  pointer-events: none;
}

.new-stamp {
  position: absolute;
  top: 19px;
  right: 20px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff8f2;
  font-family: var(--font-mono);
  font-size: .49rem;
  font-weight: 700;
  letter-spacing: .08em;
  transform: rotate(6deg);
  box-shadow: 0 5px 14px rgba(232, 93, 74, .24);
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .55rem;
  letter-spacing: .07em;
  line-height: 1.5;
}

.post-featured .post-meta {
  padding-right: 55px;
}

.post-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--lav-soft);
  color: var(--lav-deep);
  font-family: var(--font-sans);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: 0;
}

.dot-sep {
  color: var(--line-strong);
}

.post-card h3 {
  margin: 13px 0 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.85vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.45;
}

.post-featured h3 {
  max-width: 90%;
  margin-top: 16px;
  font-size: clamp(1.38rem, 2.6vw, 2rem);
  line-height: 1.35;
}

.post-card > p {
  color: var(--ink-soft);
  font-size: .83rem;
  line-height: 1.9;
}

.post-featured > p {
  max-width: 92%;
  font-size: .88rem;
}

.post-card details {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.post-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--lav-deep);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  list-style: none;
}

.post-card summary::-webkit-details-marker {
  display: none;
}

.post-card summary:hover {
  color: var(--coral);
}

.plus {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .78rem;
  line-height: 1;
  transition: transform .25s ease;
}

details[open] .plus {
  transform: rotate(45deg);
}

.post-body {
  padding-top: 11px;
  color: var(--ink-soft);
  font-size: .81rem;
  line-height: 1.95;
}

.post-body p + p {
  margin-top: 10px;
}

.now-panel {
  position: sticky;
  top: 96px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 26px;
  background: linear-gradient(155deg, #2b1f3d 0%, #1f172c 56%, #332447 100%);
  color: #f9f1ff;
  box-shadow: 0 24px 60px rgba(33, 24, 47, .24);
}

.now-panel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 204, 60, .26), transparent 68%);
  pointer-events: none;
}

.now-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(107, 193, 138, .28);
  border-radius: 999px;
  background: rgba(107, 193, 138, .1);
  color: #8bdbab;
  font-family: var(--font-mono);
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8bdbab;
  animation: pulse 2s ease-in-out infinite;
}

.now-panel h3 {
  position: relative;
  z-index: 1;
  margin: 14px 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.now-list {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
}

.now-list li {
  display: grid;
  grid-template-columns: 57px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.now-list li:last-child {
  border-bottom: 0;
}

.now-list li > span {
  padding-top: 2px;
  color: var(--butter);
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .08em;
}

.now-list b {
  display: block;
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
}

.now-list small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .42);
  font-size: .63rem;
  line-height: 1.5;
}

.status-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
}

.bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .48);
  font-family: var(--font-mono);
  font-size: .54rem;
}

.track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
}

.track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--butter), var(--lav));
  transition: width 1.25s cubic-bezier(.2, .8, .2, 1) .25s;
}

.now-panel.is-visible .track i {
  width: var(--v);
}

.now-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  padding-top: 13px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .36);
  font-family: var(--font-mono);
  font-size: .52rem;
  line-height: 1.6;
}

.now-foot .pulse-dot {
  width: 5px;
  height: 5px;
  background: #8bdbab;
}

/* ---------- quote ---------- */

.quote-section {
  padding-top: clamp(20px, 3vw, 38px);
  padding-bottom: clamp(48px, 5.5vw, 76px);
}

.quote-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5.4vw, 64px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 36px;
  background: linear-gradient(135deg, #241a33 0%, #342444 58%, #241b33 100%);
  color: #fbf3ff;
  box-shadow: 0 30px 90px rgba(36, 26, 51, .3);
}

.quote-card::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -110px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 204, 60, .23), transparent 66%);
  pointer-events: none;
}

.quote-card::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -100px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 182, 228, .18), transparent 68%);
  pointer-events: none;
}

.quote-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quote-auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .38);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .14em;
}

.quote-auto i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--butter);
  animation: pulse 2s ease-in-out infinite;
}

.quote-mark {
  position: absolute;
  top: 30px;
  left: clamp(20px, 4.6vw, 56px);
  z-index: 0;
  color: var(--butter);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 16vw, 14rem);
  line-height: 1;
  opacity: .1;
  pointer-events: none;
}

.quote-text {
  position: relative;
  z-index: 1;
  max-width: 980px;
  min-height: 3.2em;
  margin-top: clamp(28px, 4vw, 44px);
  color: #fff9ff;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.3vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.55;
  text-wrap: balance;
  transition: opacity .2s ease, transform .2s ease;
}

.quote-text.is-switching {
  opacity: 0;
  transform: translateY(9px);
}

.quote-source {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  color: rgba(255, 255, 255, .46);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  transition: opacity .2s ease;
}

.quote-source.is-switching {
  opacity: 0;
}

.quote-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 42px);
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.quote-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .76);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.quote-btn svg {
  width: 17px;
  height: 17px;
}

.quote-btn:hover {
  border-color: var(--butter);
  background: var(--butter);
  color: #2d203d;
  transform: translateY(-2px);
}

.quote-index {
  min-width: 48px;
  color: rgba(255, 255, 255, .38);
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .1em;
  text-align: center;
}

.quote-hint {
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .08em;
}

.quote-spark {
  position: absolute;
  z-index: 1;
  color: var(--butter);
  font-size: 1rem;
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}

.qs-1 {
  top: 24%;
  right: 10%;
}

.qs-2 {
  right: 17%;
  bottom: 25%;
  color: var(--lav);
  font-size: .8rem;
  animation-delay: 1.1s;
}

/* ---------- talk / chat ---------- */

.talk-section {
  padding-top: clamp(68px, 7.5vw, 96px);
}

.talk-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}

.talk-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.28;
}

.talk-lead span {
  color: var(--coral);
}

.talk-text {
  max-width: 430px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.95;
}

.talk-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 24px;
}

.talk-facts > div {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.talk-facts span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .1em;
  line-height: 1.5;
}

.talk-facts b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.6;
}

.talk-tip {
  margin-top: 17px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.8;
}

.talk-tip span {
  margin-right: 5px;
  color: var(--coral);
}

.talk-chat {
  min-width: 0;
}

.chat-card {
  width: 100%;
  max-width: 506px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.chat-card.shake {
  animation: shake .42s ease;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, var(--lav-soft), var(--surface) 60%, rgba(249, 204, 60, .18));
}

.chat-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.chat-id {
  min-width: 0;
}

.chat-id b {
  display: block;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

.chat-id span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .02em;
  line-height: 1.4;
}

.dot-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ab17a;
  box-shadow: 0 0 0 3px rgba(74, 177, 122, .14);
  animation: pulse 2s ease-in-out infinite;
}

.poke-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .61rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.poke-btn svg {
  width: 13px;
  height: 13px;
}

.poke-btn:hover {
  color: var(--ink);
  border-color: var(--butter);
  background: var(--butter-soft);
  transform: rotate(-3deg) translateY(-2px);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: 320px;
  overflow-y: auto;
  padding: 17px 15px 10px;
  background-color: var(--surface-solid);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(123, 94, 167, .12) 1px, transparent 0),
    linear-gradient(180deg, rgba(201, 182, 228, .08), transparent 48%);
  background-size: 17px 17px, auto;
  scrollbar-width: thin;
  scrollbar-color: var(--lav) transparent;
  overscroll-behavior: contain;
}

[data-theme="dark"] .chat-log {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0),
    linear-gradient(180deg, rgba(201, 182, 228, .07), transparent 48%);
}

.chat-log::-webkit-scrollbar {
  width: 6px;
}

.chat-log::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: var(--lav);
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 88%;
  animation: popIn .26s ease both;
}

.chat-row.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-row.system {
  align-self: center;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .53rem;
  line-height: 1.6;
  text-align: center;
}

.mini-avatar {
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.bubble {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-row.user .bubble {
  border-color: transparent;
  border-radius: 15px 15px 4px 15px;
  background: var(--butter);
  color: #312417;
  font-weight: 600;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--surface-2);
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: .15s;
}

.typing i:nth-child(3) {
  animation-delay: .3s;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 15px 10px;
  border-top: 1px solid var(--line);
}

.chat-chips button {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .58rem;
  line-height: 1.6;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.chat-chips button:hover {
  color: var(--ink);
  border-color: var(--butter);
  background: var(--butter-soft);
  transform: translateY(-1px);
}

.chat-form {
  display: flex;
  gap: 7px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.5;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.chat-form input::placeholder {
  color: var(--muted);
}

.chat-form input:focus {
  border-color: var(--lav-deep);
  background: var(--surface-solid);
}

.chat-form button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--ink);
  color: var(--bg);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.chat-form button svg {
  width: 16px;
  height: 16px;
}

.chat-form button:hover {
  transform: translateY(-2px) rotate(-7deg);
  box-shadow: 0 7px 18px rgba(45, 32, 61, .2);
}

[data-theme="dark"] .chat-form button {
  background: var(--butter);
  color: #2d203d;
}

.chat-note {
  margin-top: 8px;
  padding-right: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .02em;
  text-align: right;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 4vw, 50px);
  overflow: hidden;
  padding: clamp(46px, 7vw, 76px) 0 26px;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(160deg, #251b34 0%, #1b1327 62%, #21182f 100%);
  color: #f7efff;
}

.footer-watermark {
  position: absolute;
  right: -2%;
  bottom: -6%;
  z-index: 0;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 23vw, 22rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .7;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr .72fr .96fr;
  gap: clamp(30px, 5vw, 70px);
}

.footer-logo {
  display: inline-flex;
}

.footer-logo .brand-name {
  color: #fff;
}

.footer-logo .brand-name small {
  color: rgba(255, 255, 255, .36);
}

.footer-brand > p {
  margin-top: 17px;
  color: rgba(255, 255, 255, .52);
  font-size: .77rem;
  line-height: 1.9;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.footer-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-mono);
  font-size: .54rem;
  line-height: 1.5;
}

.footer-label {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .18em;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: rgba(255, 255, 255, .63);
  font-size: .76rem;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}

.footer-nav a span {
  color: rgba(255, 255, 255, .24);
  font-family: var(--font-mono);
  font-size: .52rem;
}

.footer-nav a:hover {
  padding-left: 4px;
  border-color: rgba(249, 204, 60, .3);
  color: var(--butter);
}

.footer-about p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .46);
  font-size: .7rem;
  line-height: 1.9;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .66);
  font-family: var(--font-mono);
  font-size: .57rem;
  white-space: nowrap;
}

.color-pill i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 2px;
  background: var(--c);
}

.footer-about .footer-warning {
  color: var(--butter);
  font-size: .76rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: clamp(36px, 6vw, 58px);
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .3);
  font-family: var(--font-mono);
  font-size: .54rem;
  line-height: 1.7;
}

.footer-mid {
  color: rgba(255, 255, 255, .46);
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-end a {
  color: rgba(255, 255, 255, .5);
  transition: color .2s ease;
}

.footer-end a:hover {
  color: var(--butter);
}

.potato-egg {
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  opacity: .48;
  filter: grayscale(.25);
  transition: transform .25s ease, opacity .25s ease, filter .25s ease;
}

.potato-egg:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.25) rotate(13deg);
}

/* ---------- toast / potatoes ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

[data-theme="dark"] .toast {
  background: var(--butter);
  color: #2d203d;
  border-color: transparent;
}

.potato-fly {
  position: fixed;
  z-index: 390;
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
  animation: potatoBurst .95s cubic-bezier(.15, .8, .3, 1) forwards;
  will-change: transform, opacity;
}

.noscript {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  max-width: 330px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--butter);
  color: #332600;
  box-shadow: var(--shadow-sm);
  font-size: .72rem;
  line-height: 1.7;
}

/* ---------- animations ---------- */

html.js .hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: riseIn .9s cubic-bezier(.2, .75, .25, 1) forwards;
}

html.js .hero-copy > :nth-child(1) { animation-delay: .08s; }
html.js .hero-copy > :nth-child(2) { animation-delay: .16s; }
html.js .hero-copy > :nth-child(3) { animation-delay: .3s; }
html.js .hero-copy > :nth-child(4) { animation-delay: .38s; }
html.js .hero-copy > :nth-child(5) { animation-delay: .46s; }
html.js .hero-copy > :nth-child(6) { animation-delay: .54s; }

html.js .hero-visual {
  opacity: 0;
  transform: translateY(18px) scale(.98);
  animation: riseIn 1.1s cubic-bezier(.2, .75, .25, 1) .24s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseRing {
  0% { transform: scale(.7); opacity: .65; }
  75%, 100% { transform: scale(1.55); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes haloFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -13px, 0) scale(1.035); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.86) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(10deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.2); }
  24% { transform: scale(1); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, 8px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes equalize {
  from { transform: scaleY(.38); }
  to { transform: scaleY(1); }
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-.4deg); }
  40% { transform: translateX(4px) rotate(.3deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes potatoBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s)) rotate(var(--rot)); }
}

@keyframes driftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, 4vh, 0) scale(1.06); }
}

@keyframes driftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4vw, 6vh, 0) scale(1.1); }
}

@keyframes driftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.98); }
  50% { transform: translate3d(-3vw, -5vh, 0) scale(1.04); }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(5rem, 12vw, 9rem);
  }

  .orbit {
    width: 111%;
    height: 111%;
  }

  .like-games {
    grid-column: span 6;
  }

  .like-models {
    grid-column: span 6;
  }

  .like-music,
  .like-tech,
  .like-aesthetic,
  .like-food {
    grid-column: span 6;
  }

  .like-games {
    min-height: 300px;
  }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 54px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .scroll-hint {
    display: none;
  }

  .hero-watermark {
    top: 21%;
    bottom: auto;
    font-size: 33vw;
    opacity: .8;
  }

  .intro-card,
  .terminal-card,
  .relation-card,
  .faq-card {
    grid-column: span 12;
  }

  .trait-card {
    grid-column: span 6;
  }

  .trait-card:last-of-type {
    grid-column: span 12;
  }

  .now-layout {
    grid-template-columns: 1fr;
  }

  .now-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    margin-top: 2px;
  }

  .now-head,
  .now-panel h3,
  .now-list {
    grid-column: 1;
  }

  .status-bars {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
    padding-left: 30px;
    border-left: 1px dashed rgba(255, 255, 255, .12);
  }

  .now-foot {
    grid-column: 1 / -1;
  }

  .talk-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .talk-copy {
    max-width: 660px;
  }

  .chat-card {
    max-width: 620px;
    margin-inline: auto;
  }

  .chat-log {
    height: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
    padding-top: 4px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-right: 10px;
  }

  .nav {
    display: none;
  }

  .nav.open {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass-strong);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    animation: menuIn .22s ease both;
  }

  .nav.open a {
    width: 100%;
    padding: 11px 14px;
    border-radius: 13px;
    font-size: .88rem;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-desc {
    max-width: 430px;
    padding-bottom: 0;
    text-align: left;
  }

  .section-title-row h2 {
    font-size: clamp(2.7rem, 10.5vw, 4.4rem);
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
  }

  .trait-card {
    grid-column: span 12;
    min-height: 0;
  }

  .trait-card:last-of-type {
    grid-column: span 12;
  }

  .relation-inner {
    align-items: flex-start;
  }

  .quote-card {
    border-radius: 28px;
  }

  .quote-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-mid {
    order: 3;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 7px 8px 7px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }

  .brand-name {
    font-size: .94rem;
  }

  .brand-name small {
    font-size: .43rem;
    letter-spacing: .13em;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-btn,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 38px;
  }

  .eyebrow {
    font-size: .56rem;
    letter-spacing: .08em;
  }

  .hero-title {
    margin-top: 26px;
    font-size: clamp(4.5rem, 24vw, 7.2rem);
  }

  .hero-subtitle {
    gap: .35rem .5rem;
    font-size: .62rem;
    letter-spacing: .06em;
  }

  .hero-intro {
    font-size: .9rem;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    min-height: 45px;
    padding: 11px 17px;
    font-size: .8rem;
  }

  .hero-tags {
    gap: 5px;
  }

  .tag {
    font-size: .56rem;
  }

  .hero-visual {
    width: min(100%, 400px);
  }

  .portrait-stage {
    aspect-ratio: 1 / 1.02;
  }

  .orbit {
    width: 112%;
    height: 112%;
  }

  .orbit text {
    font-size: 7px;
  }

  .polaroid {
    width: 74%;
    padding: 10px 10px 0;
  }

  .tape {
    width: 90px;
    height: 25px;
    top: -11px;
  }

  .polaroid figcaption {
    padding: 10px 3px 12px;
    font-size: .54rem;
  }

  .speech {
    top: 2%;
    right: 0;
    padding: 9px 12px;
    font-size: .72rem;
    border-radius: 14px 14px 14px 4px;
  }

  .whale-sticker {
    left: -1%;
    bottom: 3%;
    width: 82px;
    height: 82px;
    font-size: .66rem;
  }

  .whale-sticker small {
    font-size: .36rem;
  }

  .status-mini {
    right: -1%;
    bottom: 0;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .status-mini b {
    font-size: .6rem;
  }

  .status-mini span:not(.status-dot) {
    font-size: .44rem;
  }

  .spark {
    font-size: 1rem;
  }

  .s3 {
    left: 5%;
  }

  .marquee-group span {
    padding: 0 22px;
    font-size: .6rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-meta {
    padding-top: 12px;
  }

  .kicker {
    font-size: .55rem;
    letter-spacing: .11em;
  }

  .kicker.en {
    display: none;
  }

  .section-title-row {
    margin-top: 14px;
  }

  .section-title-row h2 {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .section-head {
    margin-bottom: 27px;
  }

  .bento {
    gap: 12px;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .intro-lead {
    font-size: clamp(1.32rem, 6.4vw, 1.65rem);
  }

  .intro-card > p:not(.intro-lead) {
    font-size: .82rem;
  }

  .pullquote {
    font-size: .88rem;
  }

  .mini-stat .lab {
    font-size: .52rem;
  }

  .terminal-body {
    font-size: .65rem;
    padding: 17px 17px 13px;
  }

  .terminal-top,
  .terminal-foot {
    padding-left: 17px;
    padding-right: 17px;
  }

  .trait-card,
  .intro-card,
  .terminal-card,
  .relation-card,
  .faq-card {
    border-radius: 22px;
  }

  .relation-inner {
    flex-direction: column;
    gap: 14px;
  }

  .relation-copy p {
    font-size: .79rem;
  }

  .faq-row {
    font-size: .74rem;
    gap: 10px;
  }

  .faq-q {
    font-size: .57rem;
  }

  .like-games,
  .like-models,
  .like-music,
  .like-tech,
  .like-aesthetic,
  .like-food {
    grid-column: span 12;
  }

  .like-card {
    padding: 22px;
    border-radius: 22px;
    min-height: 0;
  }

  .like-games {
    min-height: 300px;
  }

  .like-games p {
    max-width: 100%;
  }

  .like-card h3 {
    font-size: 1.24rem;
  }

  .like-games h3 {
    font-size: 1.6rem;
  }

  .like-card p {
    font-size: .8rem;
  }

  .now-layout {
    gap: 12px;
  }

  .posts {
    gap: 10px;
  }

  .post-card {
    padding: 20px;
    border-radius: 20px;
  }

  .post-featured {
    padding: 22px;
  }

  .post-featured h3 {
    max-width: 100%;
    font-size: 1.34rem;
  }

  .post-featured h3 br {
    display: none;
  }

  .post-featured > p {
    max-width: 100%;
    font-size: .82rem;
  }

  .post-card > p {
    font-size: .79rem;
  }

  .new-stamp {
    top: 16px;
    right: 14px;
  }

  .now-panel {
    display: block;
    padding: 23px;
    border-radius: 22px;
  }

  .now-panel .status-bars {
    margin-top: 18px;
    padding-top: 15px;
    padding-left: 0;
    border-top: 1px dashed rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .now-panel .now-foot {
    margin-top: 15px;
  }

  .quote-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .quote-text {
    min-height: 3.25em;
    font-size: clamp(1.5rem, 7.6vw, 2.1rem);
    line-height: 1.6;
  }

  .quote-source {
    font-size: .55rem;
  }

  .quote-mark {
    top: 36px;
    left: 12px;
    font-size: 8rem;
  }

  .quote-hint {
    display: none;
  }

  .talk-lead {
    font-size: 2rem;
  }

  .talk-facts {
    grid-template-columns: 1fr;
  }

  .chat-card {
    border-radius: 20px;
  }

  .chat-log {
    height: 290px;
  }

  .chat-head {
    padding: 11px 12px;
  }

  .chat-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-id b {
    font-size: .78rem;
  }

  .bubble {
    font-size: .76rem;
  }

  .chat-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 9px;
  }

  .chat-chips::-webkit-scrollbar {
    display: none;
  }

  .chat-chips button {
    flex: none;
  }

  .chat-form {
    padding: 9px 10px 11px;
  }

  .chat-note {
    font-size: .48rem;
  }

  .site-footer {
    border-radius: 30px 30px 0 0;
    padding-top: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-nav {
    max-width: 290px;
  }

  .footer-bottom {
    margin-top: 33px;
    font-size: .49rem;
  }

  .footer-end {
    width: 100%;
    justify-content: space-between;
  }

  .footer-watermark {
    bottom: -3%;
    font-size: 34vw;
  }

  .toast {
    bottom: 18px;
    font-size: .72rem;
    padding: 9px 14px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(4.2rem, 25vw, 6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .orbit {
    width: 119%;
    height: 119%;
  }

  .polaroid {
    width: 78%;
  }

  .speech {
    right: -3%;
    font-size: .66rem;
  }

  .status-mini {
    right: -3%;
  }

  .whale-sticker {
    left: -3%;
    width: 74px;
    height: 74px;
    font-size: .6rem;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .quote-text {
    font-size: 1.38rem;
  }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal,
  html.js .hero-copy > *,
  html.js .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .now-panel.is-visible .track i {
    width: var(--v);
  }

  .marquee-track {
    animation: none;
  }
}


/* ---------- Markdown 文章卡片（构建生成） ---------- */

.post-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.post-card-link:hover h3 {
  color: var(--coral);
}

.post-card-link:hover .post-cta {
  color: var(--coral);
  transform: translateX(4px);
}

.post-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 18px;
  color: var(--lav-deep);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .2s ease, transform .2s ease;
}

.post-cta svg {
  width: 13px;
  height: 13px;
}

.posts-empty {
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.9;
  text-align: center;
}
