/* ============================================================
   咸鱼桑的小窝 · 个人网站
   Palette: sakura pink / lavender / sky blue on cream
   ============================================================ */

:root {
  --pink: #ff86ad;
  --pink-2: #ffb3c9;
  --pink-3: #ffe3ec;
  --lav: #b49bff;
  --lav-2: #ded2ff;
  --sky: #7cc7ff;
  --mint: #9fe6cf;
  --ink: #453a58;
  --ink-soft: #6f6484;
  --muted: #9a90ad;
  --bg: #fff8fb;
  --bg-2: #f8f3ff;
  --card: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px -26px rgba(190, 140, 185, 0.55);
  --shadow-sm: 0 10px 28px -16px rgba(190, 140, 185, 0.6);
  --radius: 26px;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "LXGW WenKai", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--pink-2); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #fff2f7; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink-2), var(--lav-2));
  border-radius: 99px;
  border: 2px solid #fff2f7;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* ---------- background layers ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 8% 6%, rgba(255, 186, 212, 0.5), transparent 62%),
    radial-gradient(48vw 48vw at 92% 14%, rgba(196, 176, 255, 0.42), transparent 64%),
    radial-gradient(54vw 54vw at 74% 92%, rgba(168, 220, 255, 0.4), transparent 65%),
    radial-gradient(40vw 40vw at 16% 84%, rgba(255, 226, 190, 0.34), transparent 66%);
}

#petals {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 2; }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 250, 252, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 34px -26px rgba(150, 110, 160, 0.8);
}

.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--pink), var(--lav));
  box-shadow: 0 8px 18px -8px rgba(255, 134, 173, 0.9);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
}

.brand-text em {
  font-style: normal;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  color: var(--pink);
  margin-left: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-links a.is-active {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px -12px rgba(190, 140, 185, 0.9);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-btn:hover {
  color: var(--pink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 132px 0 104px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.08);
  transition: opacity 1.8s ease, transform 24s linear;
  will-change: opacity, transform;
}

.wallpaper.on {
  opacity: 0.82;
  transform: scale(1.14);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 54% at 50% 46%,
      rgba(255, 248, 251, 0.62) 0%,
      rgba(255, 248, 251, 0.32) 55%,
      rgba(255, 248, 251, 0.04) 100%),
    linear-gradient(180deg,
      rgba(255, 248, 251, 0.24) 0%,
      rgba(255, 248, 251, 0.1) 40%,
      rgba(255, 248, 251, 0.86) 88%,
      var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 .hello {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero h1 .grad {
  display: inline-block;
  background: linear-gradient(102deg, #e8588e 4%, #8b6bff 52%, #3f9ce0 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 10px rgba(255, 255, 255, 0.75));
}

.type-line {
  min-height: 1.8em;
  margin: 6px 0 18px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  color: #b06a88;
  letter-spacing: 0.02em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: var(--pink);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-desc {
  max-width: 48ch;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn-ico { transition: transform 0.28s ease; }
.btn:hover .btn-ico { transform: translateX(5px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff9dbb, #c7a8ff);
  box-shadow: 0 16px 34px -14px rgba(255, 143, 177, 0.95);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px -16px rgba(255, 143, 177, 1);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover { transform: translateY(-3px); }

.btn-lg { padding: 16px 32px; font-size: 15.5px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-meta li { display: flex; align-items: center; gap: 18px; }
.hero-meta li + li::before {
  content: "✿";
  color: #ffc3d6;
  font-size: 9px;
}

/* hero visual */

.hero-avatar {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.avatar-ring {
  position: relative;
  width: clamp(112px, 13vw, 148px);
  aspect-ratio: 1;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ffc2d6, #d9c9ff, #b9e4ff, #ffe3c9, #ffc2d6);
  box-shadow: 0 22px 50px -26px rgba(197, 150, 210, 0.95);
  animation: spin 28s linear infinite;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  animation: spin 28s linear infinite reverse;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-flower {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 36px;
  height: 50px;
  margin-left: -18px;
  z-index: 4;
  transform-origin: 50% 80%;
  animation: flowerSway 3.6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 4px 9px rgba(214, 49, 88, 0.28));
}

.avatar-flower svg { display: block; width: 100%; height: 100%; }

@keyframes flowerSway {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(8deg); }
}

@keyframes spin { to { transform: rotate(360deg); } }

.ring-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pink-2);
  box-shadow: 0 4px 12px rgba(255, 134, 173, 0.5);
}

.ring-dot.d1 { top: 4%; left: 24%; }
.ring-dot.d2 { bottom: 18%; right: 2%; border-color: var(--lav-2); }
.ring-dot.d3 { bottom: 2%; left: 30%; border-color: #b9e4ff; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: float 5.5s ease-in-out infinite alternate;
  white-space: nowrap;
}

.float-card strong { font-size: 16px; color: var(--pink); }
.float-card span { white-space: nowrap; }

.fc1 { top: 10%; left: -166px; }
.fc2 { bottom: 6%; right: -166px; animation-delay: -2.6s; }

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd39b;
  box-shadow: 0 0 0 4px rgba(95, 211, 155, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95, 211, 155, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(95, 211, 155, 0.06); }
}

@keyframes float {
  from { transform: translateY(-8px); }
  to { transform: translateY(8px); }
}

.spark {
  position: absolute;
  color: var(--pink-2);
  animation: twinkle 3.4s ease-in-out infinite;
  user-select: none;
}

.sp1 { top: -16px; right: -30px; font-size: 16px; }
.sp2 { bottom: -12px; left: -30px; font-size: 12px; animation-delay: -1.2s; }
.sp3 { top: 46%; right: -54px; font-size: 18px; color: #cbb8ff; animation-delay: -2.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(18deg); }
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 15px 0;
  border-block: 1px dashed rgba(196, 160, 200, 0.32);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: #b09ec0;
}

.marquee-track i { color: var(--pink-2); font-style: normal; font-size: 12px; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: 104px 0;
}

.section.page-top {
  padding-top: 152px;
  padding-bottom: 110px;
}

.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 460px;
  pointer-events: none;
  background:
    radial-gradient(50% 100% at 50% 0%, rgba(255, 205, 227, 0.55), transparent 70%),
    radial-gradient(36% 92% at 84% 6%, rgba(203, 187, 255, 0.3), transparent 72%);
}

.section-tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 236, 245, 0.5));
  border-block: 1px solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.section-tint > .container { position: relative; }

.sec-head {
  margin-bottom: 46px;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--pink);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink-2), transparent);
}

.sec-head h1,
.sec-head h2 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.sec-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 32px;
  align-items: start;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.about-quote {
  margin: 24px 0 !important;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 16.5px !important;
  color: #b06a88 !important;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--pink-2);
  border-radius: 0 16px 16px 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.profile-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 13px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -16px rgba(190, 140, 185, 0.9);
}

.profile-row dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #d4537e;
}

.profile-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -14px rgba(190, 140, 185, 0.9);
  transition: transform 0.25s ease, color 0.25s ease;
}

.skills li:hover { transform: translateY(-2px); color: var(--pink); }

.now-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.now-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd39b;
  animation: pulse 2.4s ease-in-out infinite;
}

.now-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.now-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(196, 160, 200, 0.28);
}

.now-list li:last-child { border-bottom: 0; }

.now-title { font-size: 13.5px; color: var(--ink); }

.now-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-doing { color: #d6557f; background: rgba(255, 179, 201, 0.35); }
.tag-week { color: #6a86d8; background: rgba(168, 200, 255, 0.38); }
.tag-idle { color: #8d84a0; background: rgba(210, 204, 224, 0.4); }

.now-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  padding: 22px 16px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease;
}

.stat:hover { transform: translateY(-4px); }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  background: linear-gradient(120deg, #ff8fb1, #b49bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 201, 0.55), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 179, 201, 0.8);
}

.product-card:hover::before { opacity: 1; }

.product-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d9c8dd;
}

.product-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(190, 140, 185, 1);
}

.product-icon svg { width: 30px; height: 30px; }
.icon-sakura { background: linear-gradient(135deg, #ffa5c2, #ff7ba6); }
.icon-pet { background: linear-gradient(135deg, #c3b0ff, #9d84ff); }
.icon-anime { background: linear-gradient(135deg, #9fdcff, #6fb6ff); }

.product-body h3 {
  margin: 18px 0 4px;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.product-sub {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.04em;
}

.product-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(196, 160, 200, 0.28);
}

.product-meta { font-size: 11.5px; color: var(--muted); }

.link-arrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.link-arrow:hover { transform: translateX(3px); }

/* ---------- works ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter {
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.filter:hover { transform: translateY(-2px); color: var(--pink); }

.filter.is-active {
  color: #fff;
  background: linear-gradient(120deg, #ff9dbb, #c7a8ff);
  border-color: transparent;
  box-shadow: 0 12px 26px -14px rgba(255, 143, 177, 0.95);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card.is-hidden { display: none; }

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pink-3);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-thumb img { transform: scale(1.07); }

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(88, 58, 110, 0.34));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-card:hover .work-thumb::after { opacity: 1; }

.work-info { padding: 15px 18px 19px; }

.works-note {
  margin: 34px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.work-info h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.work-info p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- resources ---------- */

.res-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.res-group-title::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--lav));
}

.res-list + .res-group-title { margin-top: 46px; }

.res-list > .res-row:only-child { grid-column: 1 / -1; }

.res-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.res-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -22px rgba(190, 140, 185, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.res-row:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 201, 0.85);
  box-shadow: var(--shadow-sm);
}

.res-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.res-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.ico-zip { background: linear-gradient(135deg, #ffb08f, #ff8b7a); }
.ico-svg { background: linear-gradient(135deg, #c3b0ff, #9d84ff); }
.ico-ase { background: linear-gradient(135deg, #7fd2f5, #56b4e8); }
.ico-md { background: linear-gradient(135deg, #8ce0c4, #4fc9a4); }
.ico-brush { background: linear-gradient(135deg, #ffa8c8, #f77aab); }
.ico-link { background: linear-gradient(135deg, #ffd98a, #f5b95c); }

.res-thumb {
  object-fit: cover;
  padding: 0;
  background: #fff;
}

.ico-font {
  font-family: "LXGW WenKai", var(--font-display);
  font-size: 24px;
  letter-spacing: 0;
}

.res-logo {
  object-fit: contain;
  padding: 10px;
}

.res-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.res-main strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.res-main span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.res-act {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.res-row:hover .res-act {
  transform: translateY(2px);
  background: linear-gradient(120deg, #ff9dbb, #c7a8ff);
  color: #fff;
}

/* ---------- game detail ---------- */

.game-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.game-back:hover { color: var(--pink); }

.game-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}

.game-icon {
  width: 104px;
  height: 104px;
  flex: none;
  object-fit: cover;
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.game-head-text h1 {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.game-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-tags li {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.game-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 44px;
}

.game-shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.game-shots img:hover { transform: translateY(-3px); }

.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.game-main h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
}

.game-main h2 + p { margin-top: 0; }

.game-main p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.game-features {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.game-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.game-card h3 {
  margin: 0 0 14px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.game-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(196, 160, 200, 0.25);
  font-size: 12.5px;
}

.game-info div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.game-info dt {
  flex: none;
  color: var(--muted);
}

.game-info dd {
  margin: 0;
  text-align: right;
  color: var(--ink-soft);
}

.game-req {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-soft);
}

.game-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding: 30px clamp(20px, 4vw, 40px);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 226, 238, 0.92), rgba(240, 232, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.game-dl-text {
  flex: 1 1 420px;
}

.game-dl-text h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
}

.game-dl-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.game-dl-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.game-source {
  margin: 26px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 900px) {
  .game-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .game-shots { grid-template-columns: 1fr; }
  .game-head { gap: 14px; }
  .game-icon { width: 76px; height: 76px; border-radius: 18px; }
  .game-download { padding: 24px 20px; }
}

/* ---------- contact ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 82px) 26px;
  text-align: center;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 226, 238, 0.92), rgba(240, 232, 255, 0.92) 54%, rgba(226, 245, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 68%);
  pointer-events: none;
}

.contact-card > * { position: relative; }

.contact-card h1,
.contact-card h2 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.8vw, 38px);
  line-height: 1.35;
}

.contact-desc {
  max-width: 50ch;
  margin: 0 auto 30px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cqr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 880px;
  margin: 30px auto 0;
}

.cqr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 10px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 28px -24px rgba(190, 140, 185, 0.95);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cqr:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.cqr-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 14px;
}

.cqr-name {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cqr-id {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  word-break: break-all;
}

.contact-deco {
  position: absolute;
  color: rgba(255, 179, 201, 0.55);
  font-size: 26px;
  pointer-events: none;
  animation: twinkle 4.6s ease-in-out infinite;
}

.cd1 { top: 16%; left: 12%; }
.cd2 { bottom: 18%; right: 14%; color: rgba(203, 184, 255, 0.7); animation-delay: -2s; }

/* ---------- footer ---------- */

.footer {
  padding: 34px 0 42px;
  border-top: 1px dashed rgba(196, 160, 200, 0.3);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.footer p { margin: 0; }
.footer-note { font-size: 11px; opacity: 0.75; }

.footer-credit {
  font-size: 10.5px;
  opacity: 0.6;
}

.footer-inner a {
  color: var(--pink);
  text-decoration: none;
}

.footer-inner a:hover { text-decoration: underline; }

/* ---------- dsh-pet style companion ---------- */

.pet {
  position: fixed;
  left: 24px;
  top: 58vh;
  z-index: 45;
  width: 300px;
  height: 169px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pet.dragging { cursor: grabbing; }
.pet.dragging .pet-video { transform: scale(1.04); }
.pet.settle { animation: petSettle 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes petSettle {
  0% { transform: translateY(-6px); }
  55% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.pet-video-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pet-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  filter: drop-shadow(0 16px 20px rgba(120, 90, 150, 0.22));
  transition: opacity 0.16s ease, transform 0.3s ease;
}

.pet-video.on { opacity: 1; }

.pet-shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 0;
  width: 42%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(130, 100, 160, 0.25), transparent 70%);
  pointer-events: none;
}

.pet-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 16px);
  z-index: 3;
  width: max-content;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.pet-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.pet-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.98);
}

.pet-close {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 4;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.pet:hover .pet-close,
.pet-close:focus-visible { opacity: 1; }
.pet-close:hover { color: var(--pink); }

.pet-restore {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 45;
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 18px;
  cursor: pointer;
}

.pet-restore.show { display: grid; }

/* ---------- vinyl music player ---------- */

.mp {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 46;
  width: 348px;
  padding: 16px 16px 13px;
  display: flex;
  gap: 15px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(24, 15, 30, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 54px -30px rgba(28, 10, 34, 0.55);
  color: #fff;
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover, none);
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  filter: blur(20px) saturate(1.2);
  pointer-events: none;
}

.mp > * { position: relative; z-index: 1; }

.mp-kicker,
.mp-title,
.mp-artist,
.mp-time,
.mp-link { text-shadow: 0 1px 10px rgba(16, 6, 20, 0.45); }

.mp.hidden {
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
}

.mp-hide {
  position: absolute;
  top: 7px;
  right: 9px;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.mp-hide:hover { color: #ffb3cc; background: rgba(255, 255, 255, 0.14); }

.mp-disc-wrap {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  margin-top: 2px;
}

.mp-disc {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #241927 0 1.5px, #17101c 1.5px 3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 14px 26px -14px #000;
  animation: mpSpin 14s linear infinite;
  animation-play-state: paused;
}

.mp.playing .mp-disc { animation-play-state: running; }

.mp-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 23%, transparent 32%, transparent 68%, rgba(255, 255, 255, 0.07) 74%, transparent 84%);
  pointer-events: none;
}

.mp-cover {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background-color: #2b1a31;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mp-spindle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: #f8eaf2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.mp-arm {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 6px;
  height: 50px;
  border-radius: 4px;
  background: linear-gradient(#f3e3d3, #ab9688);
  transform-origin: 50% 6px;
  transform: rotate(-28deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.mp-arm::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3e4, #b8a598);
}
.mp-arm::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -5px;
  width: 12px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(#eddbca, #b9a598);
}
.mp.playing .mp-arm { transform: rotate(6deg); }

@keyframes mpSpin { to { transform: rotate(360deg); } }

.mp-body {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
}

.mp-kicker {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f0a8c3;
}

.mp-title {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-artist {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-bar {
  position: relative;
  height: 4px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  touch-action: none;
}

.mp-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff7ea7, #c18bff);
}

.mp-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 126, 167, 0.25);
}

.mp-time {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.mp-skip {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.mp-skip:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.mp-play {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8db4, #b77bff);
  color: #2a1030;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(255, 126, 167, 0.8);
}

.mp-link {
  margin-left: auto;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  white-space: nowrap;
}
.mp-link:hover { color: #ffb3cc; }

.mp.blocked .mp-play {
  animation: mpPulse 1.8s ease-in-out infinite;
}

@keyframes mpPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 20px -10px rgba(255, 126, 167, 0.8); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 126, 167, 0.12); }
}

.mp-restore {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 46;
  width: 52px;
  height: 52px;
  display: none;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(26, 16, 32, 0.34);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: #ffc0d7;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 18px 38px -18px rgba(20, 8, 24, 0.7);
}
.mp-restore.show { display: grid; }
.mp-restore::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 173, 205, 0.5);
  opacity: 0;
}
.mp-restore.playing::before {
  opacity: 1;
  animation: mpSpin 6s linear infinite;
}

/* ---------- floating UI ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff9dbb, #c7a8ff);
  box-shadow: 0 16px 30px -14px rgba(255, 143, 177, 0.95);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 80;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(69, 58, 88, 0.92);
  box-shadow: 0 18px 40px -18px rgba(69, 58, 88, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 88vw;
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 122px 0 92px; }
  .avatar-ring { width: clamp(104px, 22vw, 128px); }
  .avatar-flower { width: 30px; height: 42px; margin-left: -15px; top: -15px; }
  .float-card { display: none; }
  .spark { display: none; }
  .nav-actions { margin-left: auto; }
  .profile-row { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 14px; }
  .profile-row dt { font-size: 12px; }
  .pet { width: 210px; height: 118px; left: 12px; }
  .pet-bubble { max-width: 180px; font-size: 11.5px; }

  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .product-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    position: fixed;
    top: 88px;
    left: 4vw;
    right: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 250, 252, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; border-radius: 14px; }
  .menu-btn { display: flex; }
  .lang-btn { padding: 8px 12px; }
}

@media (max-width: 700px) {
  .container { width: min(1120px, 90vw); }
  .section { padding: 78px 0; }
  .sec-head { margin-bottom: 34px; }
  .works-grid { grid-template-columns: 1fr; }
  .res-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 12px; font-size: 11.5px; }
  .hero-meta li { gap: 12px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .now-card { padding: 22px; }
  .contact-card { border-radius: 28px; }
  .cqr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 400px; }
  .to-top { right: 16px; bottom: 16px; }
  .mp { left: 12px; right: 12px; bottom: 78px; width: auto; }
  .mp-disc-wrap { flex-basis: 76px; width: 76px; height: 76px; }
  .mp-disc { width: 76px; height: 76px; }
  .mp-arm { height: 40px; }
  .mp-body { padding-right: 4px; }
  .mp-title { font-size: 13.5px; }
  .mp-restore { right: 16px; bottom: 78px; }
}

@media (max-width: 560px) {
  .pet, .pet-restore { display: none !important; }
}

@media (max-height: 780px) {
  .hero { padding-top: 108px; padding-bottom: 78px; }
  .avatar-ring { width: 100px; }
  .hero-avatar { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 12px; }
  .hero h1 .hello { margin-bottom: 8px; }
  .type-line { margin: 4px 0 12px; }
  .hero-desc { font-size: 14px; line-height: 1.8; }
  .hero-cta { margin-top: 20px; }
  .hero-meta { margin-top: 22px; }
}

/* ---------- anime cursor layer ---------- */

.cursor-buddy {
  position: fixed;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.18s ease;
  filter: drop-shadow(0 4px 8px rgba(80, 50, 120, 0.28));
  will-change: transform;
}

.cursor-buddy.show { opacity: 1; }

html,
body {
  cursor: url("../assets/cursors/neon.png") 1 1, auto;
}

a,
button,
[role="button"],
label {
  cursor: url("../assets/cursors/neon.png") 1 1, pointer;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #petals { display: none; }
  .pet, .pet-restore { display: none !important; }
}
