/* ============================================================
   栗子的小窝 · 样式表
   奶油底色 / 金渐层金 / 猫爪粉，圆润贴纸感
   ============================================================ */

:root {
  --cream: #FFF7EC;
  --cream-2: #FDEFDB;
  --paper: #FFFDF9;
  --ink: #4A3626;
  --ink-soft: #8A715C;
  --ink-faint: #B29B86;
  --gold: #E9A94A;
  --gold-deep: #D2892F;
  --gold-soft: #FBE3B8;
  --pink: #F79BA9;
  --pink-soft: #FDE4E9;
  --mint: #A8D5C0;
  --line: #F2E1CB;
  --line-strong: #E7CFAF;
  --shadow-sm: 0 6px 18px rgba(190, 140, 80, .10);
  --shadow: 0 14px 38px rgba(190, 140, 80, .14);
  --shadow-lg: 0 30px 80px rgba(120, 80, 40, .20);
  --radius: 26px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #FFE9C6 0%, rgba(255, 233, 198, 0) 62%),
    radial-gradient(900px 480px at 100% 2%, #FDE1E7 0%, rgba(253, 225, 231, 0) 58%),
    radial-gradient(800px 500px at 50% 110%, #F7F0DC 0%, rgba(247, 240, 220, 0) 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

/* 行内小图标统一尺寸，避免 SVG 默认 300×150 */
.cat { display: block; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.tiny svg { width: 14px; height: 14px; }
.icon-btn svg { width: 18px; height: 18px; }
.menu svg { width: 16px; height: 16px; flex: none; }
.note svg { width: 20px; height: 20px; flex: none; color: #B9762A; }
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.vote svg { fill: currentColor; }
.deco { display: block; }
.deco svg { width: 100%; height: auto; fill: currentColor; display: block; }

/* 这些位置的猫需要居中 */
.empty .cat, .ex-card .cat, .login-art .cat, .dropzone .cat { margin-left: auto; margin-right: auto; }

::selection { background: #F9D68C; color: #4A3626; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 238, .84);
  backdrop-filter: blur(14px) saturate(1.25);
  border-bottom: 1px dashed var(--line-strong);
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3DC, #FFDCA8);
  border: 1px solid #F5DDB8;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -6px 12px rgba(226, 170, 90, .18);
  overflow: hidden;
}
.brand-mark .cat { width: 86%; transform: translateY(6%); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: .01em; }
.brand-text small { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-faint); margin-top: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 9px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav a:hover { background: #F9EAD6; color: var(--ink); }
.nav a.on { background: var(--gold-soft); color: #8A5A17; font-weight: 700; }
.nav-dot { display: none; }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #FFF9F0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #F7C266 0%, #E9A03C 100%);
  box-shadow: 0 5px 0 #CE8A2D, 0 12px 22px rgba(216, 140, 44, .26);
  text-shadow: 0 1px 0 rgba(120, 70, 10, .18);
  transition: transform .12s ease, box-shadow .12s ease, filter .18s;
}
.btn:hover { filter: saturate(1.06) brightness(1.02); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #CE8A2D, 0 6px 12px rgba(216, 140, 44, .22); }
.btn.ghost {
  background: #FFFCF6;
  color: #7C5C3C;
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
  text-shadow: none;
}
.btn.ghost:hover { background: #FFF4E3; }
.btn.ghost:active { transform: translateY(1px); }
.btn.small { padding: 9px 16px; font-size: 13.5px; box-shadow: 0 4px 0 #CE8A2D, 0 8px 16px rgba(216, 140, 44, .2); }
.btn.small.ghost { box-shadow: none; }
.btn.tiny { padding: 6px 13px; font-size: 12.5px; box-shadow: none; border-radius: 999px; }
.btn.danger { background: linear-gradient(180deg, #F58E9C, #E4697B); box-shadow: 0 4px 0 #C24E60; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #FFFCF6;
  color: #7C5C3C;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.icon-btn:hover { background: #FFF3E1; }
.icon-btn:active { transform: scale(.94); }

.text-btn {
  background: none; border: 0; padding: 4px 6px;
  color: var(--ink-soft); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: #DCC2A0;
}
.text-btn:hover { color: var(--ink); }

/* ---------- 布局 ---------- */
.view {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  min-height: 60vh;
}
.view.fade { animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 24px;
  align-items: center;
  padding: 46px 46px 40px;
  border-radius: 36px;
  border: 1px solid #F7E4C9;
  background:
    radial-gradient(680px 320px at 88% 8%, #FFE2B4 0%, rgba(255, 226, 180, 0) 62%),
    linear-gradient(135deg, #FFF4E1 0%, #FFFAF1 48%, #FDE9EC 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -90px; bottom: -150px;
  border-radius: 50%;
  border: 2px dashed rgba(226, 170, 90, .32);
}
.hero::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  left: 38%; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 155, 169, .22), transparent 68%);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: #96662B;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #F3DDBB;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(190, 140, 80, .08);
}

.hero-title {
  margin: 18px 0 12px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.015em;
}
.hl {
  color: #B9762A;
  background: linear-gradient(180deg, transparent 64%, #F9D68C 64%, #F9D68C 93%, transparent 93%);
  padding: 0 3px;
}

.hero-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: #7E6449;
  max-width: 430px;
}
.hero-sub b { color: #8A5A17; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px dashed #EBD3B2;
  max-width: 430px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .05em; }
.stat + .stat { padding-left: 22px; border-left: 1px dashed #EBD3B2; }

.hero-wish-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  color: #A9805A;
  text-decoration: none;
  border-bottom: 1px dashed #E3C79F;
  padding-bottom: 2px;
}
.hero-wish-link:hover { color: #8A5310; }

/* 主页背景图（抖音式） */
.home-cover {
  position: relative;
  height: 230px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid #F3DFC2;
  background: #FFE9C6;
  box-shadow: var(--shadow-sm);
}
.home-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(620px 260px at 18% 18%, #FFF8EA 0%, rgba(255, 248, 234, 0) 65%),
    linear-gradient(120deg, #FFE2B4 0%, #FBD9E2 68%, #FFEAC9 100%);
  color: #A9805A;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 14px;
}
.cover-fallback .cat { width: 82px; }
.cover-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #F0D9B8;
  background: rgba(255, 253, 249, .9);
  color: #7C5C3C;
  font-size: 12.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.cover-edit:hover { background: #FFF3E1; }
.cover-edit svg { width: 15px; height: 15px; }
.home-cover + .hero {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.btn.follow.on {
  background: #FFF1F4;
  color: #C0506A;
  border: 1.5px solid #F6C9D0;
  box-shadow: none;
  text-shadow: none;
}
.btn.follow.on:active { transform: translateY(1px); }
.profile-follow { margin-top: 14px; }

.menu-bio {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #8A715C;
  background: #FFF6E7;
  border-radius: 8px;
  padding: 6px 8px;
}
.menu-warn {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #B4552F;
  background: #FFF0E4;
  border-radius: 8px;
  padding: 6px 8px;
}
.demo-fine { display: inline-block; margin-top: 6px; font-size: 11px; color: #B29B86; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  z-index: 1;
}

/* 栗子的真猫宝丽来 */
.hero-photo {
  position: relative;
  margin: 0;
  width: min(272px, 78%);
  padding: 12px 12px 10px;
  background: #FFFDF9;
  border-radius: 20px;
  box-shadow: 0 24px 54px rgba(120, 80, 40, .24);
  transform: rotate(-3.5deg);
}
.hero-photo::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 84px;
  height: 26px;
  background: rgba(249, 214, 140, .82);
  border-radius: 3px;
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 2px 6px rgba(190, 140, 80, .16);
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #F1DFC7;
}
.hero-photo figcaption {
  margin-top: 9px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: #A98B6A;
}
.hero-sticker {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 106px;
  padding: 5px;
  background: #FFFDF9;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(120, 80, 40, .22);
  transform: rotate(-9deg);
}
.hero-sticker .cat { width: 100%; }

.cat-blob {
  width: min(330px, 92%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 48% 52% 55% 45% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 50% 42%, #FFF6E6 0%, #FFE4BB 62%, #FFD5A0 100%);
  box-shadow: inset 0 -26px 46px rgba(226, 170, 90, .24), 0 24px 50px rgba(190, 130, 60, .14);
  animation: blob 12s ease-in-out infinite;
}
.cat-blob .cat {
  width: 78%;
  filter: drop-shadow(0 16px 22px rgba(190, 130, 60, .22));
  animation: bob 5.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes blob {
  0%, 100% { border-radius: 48% 52% 55% 45% / 52% 46% 54% 48%; }
  50% { border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%; }
}

.bubble {
  position: absolute;
  top: 6%;
  right: 0;
  background: #FFFDF9;
  border: 1.5px solid #F0D9B8;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 15px;
  font-size: 13px;
  color: #7A5B3C;
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
  max-width: 150px;
  line-height: 1.5;
  animation: bob 6.5s ease-in-out infinite;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 14px; bottom: -8px;
  width: 14px; height: 14px;
  background: #FFFDF9;
  border-right: 1.5px solid #F0D9B8;
  border-bottom: 1.5px solid #F0D9B8;
  transform: rotate(45deg);
}

.deco { position: absolute; color: #E7BA7C; opacity: .85; }
.deco.d1 { left: 2%; top: 16%; width: 30px; transform: rotate(-18deg); }
.deco.d2 { right: 6%; bottom: 12%; width: 24px; transform: rotate(22deg); color: #F3A9B6; }
.deco.d3 { left: 8%; bottom: 20%; width: 18px; color: #E9C58F; }

/* ---------- 区块标题 ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-title .cat { width: 34px; flex: none; }
.section-title small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: .08em;
  margin-top: 3px;
}
.section-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 分段控件 ---------- */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #F7E8D5;
  border-radius: 999px;
  border: 1px solid #F1DDC3;
}
.seg button {
  border: 0;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #8A715C;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: #FFFDF9;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(160, 110, 50, .16);
}

/* ---------- 照片墙 ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 22px;
  align-items: start;
}

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1), box-shadow .28s;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(190, 140, 80, .17); }

.post-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #F6E7D3;
  overflow: hidden;
}
.post-media.video { aspect-ratio: 4 / 5; background: #2B221A; }
.post-media img, .post-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-media.video video { object-fit: contain; }
.post-media img { transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
.post:hover .post-media img { transform: scale(1.035); }

.play-tag {
  position: absolute;
  left: 12px; top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(40, 28, 18, .55);
  color: #FFF6E6;
  font-size: 11.5px;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.seal {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #A24B5C;
  background: rgba(255, 245, 246, .92);
  border: 1px solid #F7C6CE;
  box-shadow: 0 3px 10px rgba(160, 80, 95, .16);
  transform: rotate(3deg);
  pointer-events: none;
}

.post-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.post-meta .meta-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #D8C3AB; }
.post-meta .owner-tag {
  font-size: 10px;
  letter-spacing: .04em;
  color: #96662B;
  background: #FBEBCF;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
}

.avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3DC, #FFE0B2);
  border: 1px solid #F3DDBB;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.avatar .cat { width: 92%; transform: translateY(7%); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 26px; height: 26px; }
.avatar.lg { width: 58px; height: 58px; }
.avatar.xl { width: 76px; height: 76px; }

.avatar-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFF9F0;
  margin-bottom: 10px;
}
.avatar-current-copy b { display: block; font-size: 13px; }
.avatar-current-copy small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; }
.avatar-current-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

.caption {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: #5B4636;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed #F0E0CC;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: #8A715C;
  cursor: pointer;
  transition: background .16s, color .16s, transform .12s;
}
.act:hover { background: #FFF4E3; color: var(--ink); }
.act:active { transform: scale(.95); }
.act svg { width: 17px; height: 17px; }
.act.liked { color: #E4697B; background: #FDEBEE; }
.act.liked svg { fill: #F0687C; stroke: #F0687C; }
.act.spacer { margin-left: auto; }
.act.danger:hover { background: #FDEBEE; color: #D24E60; }

/* ---------- 评论 ---------- */
.comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed #F0E0CC;
  animation: rise .25s ease both;
}
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment-body { flex: 1; min-width: 0; }
.comment-head {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 11.5px; color: var(--ink-faint);
  margin-bottom: 3px;
}
.comment-head b { font-size: 12.5px; color: #6B5240; font-weight: 700; }
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.role-badge.owner { color: #A24B5C; background: #FDE8EC; }
.role-badge.admin { color: #8A5310; background: #FBEBCF; }
.comment-del {
  margin-left: auto;
  width: 20px; height: 20px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #C9A88A;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.comment-del + .comment-del { margin-left: 0; }
.comment-del svg { width: 13px; height: 13px; }
.comment-del:hover { background: #FDEBEE; color: #C24E60; }
.user-manager {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow: auto;
  margin-bottom: 14px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFBF4;
}
.user-row-main { flex: 1; min-width: 0; }
.user-row-name { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.user-row-main small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-row-note { font-size: 10.5px; color: #A9805A; }
.comment-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #5B4636;
  word-break: break-word;
  background: #FFF6E8;
  border-radius: 4px 14px 14px 14px;
  padding: 8px 12px;
}
.comment-form { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.comment-form .input { padding: 9px 13px; font-size: 13px; border-radius: 999px; }
.comment-empty { font-size: 12.5px; color: var(--ink-faint); padding: 2px 0 4px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 46px 20px 52px;
  border: 1.5px dashed #EDD7B9;
  border-radius: 30px;
  background: rgba(255, 253, 249, .7);
}
.empty .cat { width: 110px; opacity: .95; }
.empty h3 { margin: 12px 0 6px; font-size: 17px; }
.empty p { margin: 0 auto 18px; font-size: 13.5px; color: var(--ink-soft); max-width: 320px; line-height: 1.7; }

/* ---------- 心愿箱 ---------- */
.wish-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 32px;
  border: 1px solid #F3DFC2;
  background: linear-gradient(120deg, #FFF9EF, #FDF0F2 85%);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}
.wish-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.01em; }
.wish-hero p { margin: 0; font-size: 14px; line-height: 1.8; color: #7E6449; max-width: 520px; }
.wish-hero .cat { width: 128px; transform: rotate(4deg); }

.wish-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.wish-form-card textarea { min-height: 84px; resize: vertical; }
.wish-form-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wish-form-card .hintline { font-size: 12px; color: var(--ink-faint); }

.wish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 18px; }

.wish {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .24s, box-shadow .24s;
}
.wish:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.vote {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 62px;
  padding: 10px 4px 9px;
  border-radius: 18px;
  border: 1.5px solid #F3D9B4;
  background: #FFF5E4;
  color: #96662B;
  cursor: pointer;
  transition: transform .14s, background .18s, border-color .18s;
}
.vote:hover { background: #FFEDD2; }
.vote:active { transform: scale(.94); }
.vote.on { background: #FFE1B8; border-color: var(--gold); color: #8A5310; }
.vote svg { width: 20px; height: 20px; }
.vote b { font-size: 16px; line-height: 1.1; }
.vote span { font-size: 9.5px; letter-spacing: .04em; opacity: .75; }

.wish-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wish-text { margin: 0; font-size: 15px; line-height: 1.7; word-break: break-word; }
.wish-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-faint); }
.wish-meta b { color: #6B5240; font-size: 12.5px; font-weight: 700; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.todo { color: #A68355; background: #FBF0DD; }
.status.doing { color: #C07C22; background: #FFE9C6; }
.status.done { color: #4E9070; background: #E2F5EA; }

.wish-admin { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.wish-admin select {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
  background: #FFFBF4;
}

/* ---------- 档案页 ---------- */
.profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}
.profile-card {
  border-radius: 32px;
  border: 1px solid #F5E1C3;
  background: linear-gradient(165deg, #FFF7E8, #FDE8EA);
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.profile-card .cat-blob { width: 200px; animation: none; }
.profile-card h1 { margin: 8px 0 0; font-size: 30px; letter-spacing: .02em; }
.profile-card .en { font-size: 10.5px; letter-spacing: .22em; color: var(--ink-faint); }
.profile-card p.bio { font-size: 13.5px; line-height: 1.8; color: #7E6449; margin: 8px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #F0D9B8;
  color: #8A5A17;
}
.tag.pink { color: #A24B5C; border-color: #F6C9D0; background: #FFF2F4; }
.profile-age { margin: 11px 0 0; font-size: 11.5px; color: var(--ink-faint); letter-spacing: .02em; }

.facts-card {
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.facts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.facts-head h2 { margin: 0 0 4px; font-size: 19px; }
.facts-head p { margin: 0 0 20px; font-size: 12.5px; color: var(--ink-faint); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 26px; }
.fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px dashed #F2E2CD;
  font-size: 13.5px;
}
.fact span:first-child { width: 76px; flex: none; color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
.fact b { font-weight: 600; color: #5B4636; }
.facts-empty { margin: 0; padding: 22px 0; font-size: 13px; color: var(--ink-faint); }
.updated { margin: 18px 0 0; font-size: 11px; color: var(--ink-faint); letter-spacing: .02em; }

/* 表情包墙 */
.sticker-count { font-size: 12px; color: var(--ink-faint); }
.sticker-note { margin: -6px 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); }
.sticker-wall { column-count: 4; column-gap: 16px; }
.sticker {
  break-inside: avoid;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .22s, box-shadow .22s;
}
.sticker:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sticker img { display: block; width: 100%; height: auto; background: #F6E7D3; }
.sticker-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-faint);
}
.sticker-meta .avatar { width: 22px; height: 22px; }
.sticker-meta b { color: #6B5240; font-size: 11.5px; }
.sticker-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #D8C3AB; }
.sticker-empty {
  column-span: all;
  text-align: center;
  padding: 40px 20px 44px;
  border: 1.5px dashed #EDD7B9;
  border-radius: 28px;
  background: rgba(255, 253, 249, .7);
}
.sticker-empty .cat { width: 104px; margin: 0 auto; }
.sticker-empty h3 { margin: 10px 0 6px; font-size: 17px; }
.sticker-empty p { margin: 0 auto 18px; max-width: 360px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ex-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #FFF9F0;
  padding: 14px 14px 16px;
  text-align: center;
  transition: transform .22s, box-shadow .22s;
}
.ex-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow); }
.ex-card .cat { width: 92px; }
.ex-card b { display: block; font-size: 14px; margin-top: 4px; }
.ex-card small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }

.owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.owner-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.owner-card .avatar { width: 52px; height: 52px; }
.owner-card h3 { margin: 2px 0 3px; font-size: 16px; }
.owner-card .handle { font-size: 11.5px; color: var(--ink-faint); letter-spacing: .04em; }
.owner-card p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-soft); }

.note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #FFF6E7;
  border: 1px dashed #EBD3AF;
  font-size: 12.5px;
  line-height: 1.75;
  color: #7E6449;
}
.note b { color: #8A5310; }

/* ---------- 登录 ---------- */
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: center;
  padding: 20px 0 40px;
}
.login-art {
  padding: 20px 10px;
  text-align: center;
}
.login-art .cat { width: 210px; filter: drop-shadow(0 18px 26px rgba(190, 130, 60, .2)); animation: bob 5s ease-in-out infinite; }
.login-art h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -.01em; }
.login-art p { margin: 0 auto; max-width: 320px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.login-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 4px; background: #F8EAD7; border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px;
  font-size: 14px; color: #8A715C; cursor: pointer; font-weight: 600;
}
.auth-tabs button.on { background: #FFFDF9; color: var(--ink); box-shadow: 0 2px 8px rgba(160, 110, 50, .16); }

.demo-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FFF6E7;
  border: 1px dashed #EBD3AF;
  font-size: 12px;
  line-height: 1.8;
  color: #7E6449;
}
.demo-box b { color: #8A5310; }
.demo-box code {
  background: #FFEFD6;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 11.5px;
}

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  font-size: 11.5px; color: var(--ink-faint);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #F0DFC8; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: #8A715C; }
.input, textarea, select {
  width: 100%;
  border: 1.5px solid #EFDCC4;
  background: #FFFBF4;
  border-radius: 16px;
  padding: 12px 15px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder, textarea::placeholder { color: #C4B09A; }
.input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 169, 74, .14);
}
textarea { resize: vertical; }
select { cursor: pointer; }

.form-error {
  font-size: 12.5px;
  color: #C24E60;
  background: #FDEDEF;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 12px;
}

/* ---------- 用户菜单 ---------- */
.user-menu { position: relative; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #FFFCF6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: background .18s;
}
.user-chip:hover { background: #FFF3E1; }
.user-chip .avatar { width: 28px; height: 28px; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 50;
  animation: rise .18s ease both;
}
.menu .menu-head { padding: 8px 10px 10px; border-bottom: 1px dashed #F0E0CC; margin-bottom: 6px; }
.menu .menu-head b { display: block; font-size: 13.5px; }
.menu .menu-head small { font-size: 11px; color: var(--ink-faint); }
.menu button, .menu a {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: #6B5240;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.menu button:hover, .menu a:hover { background: #FFF3E1; }

/* ---------- 弹窗 ---------- */
body.modal-open { overflow: hidden; }

.modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
.modal-root.show { display: grid; place-items: center; padding: 20px; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 54, 38, .42);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease both;
}
.modal {
  position: relative;
  width: min(540px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #FFFDF9;
  border: 1px solid #F6E3C8;
  border-radius: 28px;
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-lg);
  animation: popIn .26s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.modal-head .sub { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; font-weight: 400; }
.modal-close {
  width: 34px; height: 34px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #F8EAD7;
  color: #8A715C;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: #F5DFC2; }

.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-actions.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 14px;
  padding: 12px 0 6px;
  background: #FFFDF9;
  border-top: 1px dashed #F0E0CC;
}

/* 编辑档案 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-opt {
  width: 60px;
  padding: 4px 2px 5px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #FFFBF4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: border-color .16s, background .16s, transform .12s, box-shadow .16s;
}
.avatar-opt:hover { background: #FFF3E1; }
.avatar-opt:active { transform: scale(.96); }
.avatar-opt.on {
  border-color: var(--gold);
  background: #FFF1DA;
  box-shadow: 0 0 0 3px rgba(233, 169, 74, .16);
}
.avatar-opt .cat { width: 42px; }
.avatar-opt span { font-size: 10px; color: var(--ink-soft); }

.fact-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.fact-row { display: flex; gap: 8px; align-items: center; }
.fact-row .input { padding: 9px 12px; font-size: 13px; border-radius: 12px; }
.fact-row .label-in { flex: 0 0 104px; }
.fact-add { align-self: flex-start; }
.fact-row .value-in { flex: 1; min-width: 0; }
.row-del {
  width: 30px; height: 30px; flex: none;
  border: 0; border-radius: 50%;
  background: #FDEBEE; color: #C24E60;
  font-size: 11px; cursor: pointer;
}
.row-del:hover { background: #FBDCE1; }

#sticker-preview .preview-inner { background: #F6E7D3; }
#sticker-preview .preview-inner img { max-height: 280px; background: #F6E7D3; }

.sticker-view {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #F6E7D3;
}
.sticker-view img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.sticker-view-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* 上传 */
.dropzone {
  border: 2px dashed #E9CFA9;
  border-radius: 20px;
  background: #FFF8EC;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: #FFF1DA; }
.dropzone.over { transform: scale(.995); }
.dropzone .cat { width: 78px; pointer-events: none; }
.dropzone b { display: block; font-size: 14px; margin-top: 6px; }
.dropzone small { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

.preview { margin-top: 14px; display: none; }
.preview.show { display: block; }
.preview-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #F6E7D3;
  border: 1px solid var(--line);
}
.preview-inner img, .preview-inner video { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #2B221A; }
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ---------- 提示 ---------- */
.toast-root {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #4A3626;
  color: #FFF6E6;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(60, 40, 20, .28);
  animation: toastIn .3s cubic-bezier(.2, 1.2, .4, 1) both;
}
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }

.heart-pop {
  position: fixed;
  z-index: 130;
  font-size: 20px;
  pointer-events: none;
  animation: heartUp .8s ease-out forwards;
}
@keyframes heartUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(.6); }
  40% { opacity: 1; transform: translate(-50%, -22px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -58px) scale(.9); }
}

/* ---------- 页脚 ---------- */
.footer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 24px 42px;
  text-align: center;
  border-top: 1px dashed #EBD3B2;
  color: var(--ink-faint);
}
.footer-paw { font-size: 18px; opacity: .7; }
.footer p { margin: 6px 0 0; font-size: 12.5px; }
.footer .footer-fine { font-size: 11px; opacity: .8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 32px 28px 30px; }
  .hero-art { min-height: 250px; order: -1; }
  .cat-blob { width: min(230px, 62%); }
  .hero-photo { width: min(238px, 62%); }
  .bubble { top: 0; right: 6%; }
  .hero-sub { max-width: none; }
  .stats { max-width: none; }
  .profile { grid-template-columns: 1fr; }
  .sticker-wall { column-count: 3; }
  .profile-card { flex-direction: row; text-align: left; align-items: center; gap: 18px; padding: 22px; }
  .profile-card .cat-blob { width: 130px; flex: none; }
  .profile-card .tags { justify-content: flex-start; }
  .login-wrap { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .login-art { padding-bottom: 0; }
  .login-art .cat { width: 150px; }
}

@media (max-width: 720px) {
  .topbar-inner { padding: 10px 14px; gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text b { font-size: 15px; }
  .brand-text small { display: none; }
  .nav { margin-left: 0; gap: 0; }
  .nav a { padding: 8px 11px; font-size: 13.5px; }
  .topbar-actions { gap: 6px; }
  .topbar-upload .btn-label { display: none; }
  .topbar-upload { padding: 9px 11px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .view { padding: 22px 16px 50px; }
  .home-cover { height: 152px; border-radius: 26px; }
  .home-cover + .hero { margin-top: -36px; }
  .cover-fallback { font-size: 12.5px; gap: 10px; }
  .cover-fallback .cat { width: 56px; }
  .cover-edit { top: 10px; right: 10px; padding: 7px 11px; font-size: 11.5px; }
  .hero { padding: 26px 22px; border-radius: 28px; }
  .hero-title { font-size: clamp(28px, 8vw, 38px); }
  .hero-sub { font-size: 14px; }
  .hero-cta .btn { flex: 1; }
  .stats { gap: 14px; margin-top: 22px; padding-top: 18px; }
  .stat + .stat { padding-left: 14px; }
  .stat b { font-size: 19px; }
  .wall { grid-template-columns: 1fr; }
  .wish-list { grid-template-columns: 1fr; }
  .sticker-wall { column-count: 2; column-gap: 12px; }
  .sticker { border-radius: 16px; margin-bottom: 12px; }
  .wish-hero { grid-template-columns: 1fr; padding: 24px; }
  .wish-hero .cat { display: none; }
  .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-card .tags { justify-content: center; }
  .section-head { margin-top: 30px; }
  .seg button { padding: 7px 12px; font-size: 12.5px; }
  .modal { padding: 20px 18px 18px; border-radius: 24px; }
  .user-chip span.uname { display: none; }
  .footer { padding: 24px 16px 36px; }
}

@media (max-width: 560px) {
  .brand-text { display: none; }
  .topbar-actions .btn { padding: 9px 13px; font-size: 12.5px; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .hero-art { min-height: 210px; }
  .cat-blob { width: 190px; }
  .hero-photo { width: min(212px, 66%); }
  .hero-sticker { width: 80px; left: -2%; bottom: -2%; }
  .bubble { font-size: 12px; padding: 8px 12px; right: 2%; }
  .stats { flex-wrap: wrap; gap: 12px 18px; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .gallery { gap: 10px; }
  .ex-card { padding: 10px 8px 12px; }
  .ex-card .cat { width: 76px; }
  .wish { padding: 16px 14px; gap: 12px; }
  .vote { width: 54px; }
  .form-grid { grid-template-columns: 1fr; }
  .avatar-opt { width: 58px; }
  .avatar-opt .cat { width: 38px; }
  .fact-row .label-in { flex-basis: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
