:root {
  color-scheme: light;
  --bg: #fff8fb;
  --paper: rgba(255, 255, 255, .92);
  --text: #41343d;
  --muted: #826f7a;
  --line: rgba(238, 183, 205, .72);
  --pink: #df6f9c;
  --pink-soft: #ffe2ee;
  --blue: #4e94a5;
  --blue-soft: #ddf1f5;
  --yellow: #f4c65e;
  --hero-text: #fff8fc;
  --hero-accent: #ffe2a8;
  --shadow: 0 16px 38px rgba(116, 76, 94, .12);
  --hero-shadow: rgba(44, 24, 47, .92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  color: var(--text);
  background: var(--bg) url("/assets/video/yukino-bg-preview.jpg") center / cover fixed no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(223, 111, 156, .32);
  outline-offset: 4px;
}

#anime-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: brightness(.84) saturate(.92);
}

#anime-bg-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(47, 31, 51, .18);
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

header,
main,
footer {
  position: relative;
  z-index: 3;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 251, .82);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  color: var(--pink);
  font-size: 21px;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  padding: 7px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.hero {
  min-height: 530px;
  padding: 76px 0 50px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  padding: 12px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--hero-accent);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(45, 25, 48, .9);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(244, 198, 94, .2);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--hero-text);
  font-size: 64px;
  line-height: 1.16;
  letter-spacing: 0;
  text-shadow: 0 2px 3px var(--hero-shadow), 0 8px 24px rgba(44, 24, 47, .68);
}

.hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: #fffafc;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(38, 22, 42, .95), 0 4px 14px rgba(38, 22, 42, .82);
}

.profile,
.post-list,
.side-box,
.project,
.article-card,
.article-navigation,
.comments-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.profile {
  padding: 25px;
}

.avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(78, 148, 165, .18);
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 32px;
  font-weight: 750;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .55);
}

.profile h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.profile p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 15px;
}

.tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  color: #b64f79;
  background: var(--pink-soft);
  font-size: 13px;
}

section {
  padding: 35px 0;
  scroll-margin-top: 88px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
}

.section-heading::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 3px;
  background: var(--pink);
  box-shadow: 0 2px 8px rgba(44, 24, 47, .35);
}

.section-title {
  margin: 0;
  color: var(--hero-text);
  font-size: 26px;
  letter-spacing: 0;
  text-shadow: 0 2px 10px rgba(44, 24, 47, .9);
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.post {
  padding: 23px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.post:hover {
  background: rgba(255, 243, 248, .58);
}

.post:last-child {
  border-bottom: 0;
}

.post-meta {
  min-height: 25px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.post time {
  color: var(--muted);
  font-size: 14px;
}

.post-category,
.article-category {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border: 1px solid rgba(232, 111, 156, .24);
  border-radius: 999px;
  color: #a6426c;
  background: rgba(255, 225, 237, .88);
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
}

.post-category:hover,
.article-category:hover {
  color: #7f2f51;
  background: #ffd5e6;
}

.post h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.post h3 a:hover {
  color: var(--pink);
}

.post p {
  margin: 0 0 12px;
  color: var(--muted);
}

.read-more,
.article-back {
  color: var(--pink);
  font-size: 15px;
  font-weight: 700;
}

.read-more:hover,
.article-back:hover {
  color: #b74d78;
}

.side-box {
  padding: 22px;
  margin-bottom: 24px;
}

.side-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

.side-box p,
.side-box li {
  color: var(--muted);
  font-size: 15px;
}

.side-box ul {
  margin: 0;
  padding-left: 20px;
}

.side-box a:hover {
  color: var(--pink);
}

.calendar-widget {
  padding: 18px;
}

.calendar-header {
  min-height: 36px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.calendar-header h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.calendar-nav:hover {
  border-color: var(--pink);
  color: #fff;
  background: var(--pink);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays span,
.calendar-day {
  display: grid;
  place-items: center;
}

.calendar-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--text);
  font-size: 13px;
}

.calendar-day.is-weekend {
  color: #b64f79;
}

.calendar-day.is-other-month {
  color: #b8a8b1;
}

.calendar-day.has-post::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%);
}

.calendar-day.is-today {
  color: #fff;
  background: var(--pink);
  font-weight: 750;
  box-shadow: 0 5px 14px rgba(223, 111, 156, .3);
}

.calendar-day.is-today::after {
  background: #fff;
}

.calendar-footer {
  min-height: 34px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-today {
  padding: 4px 10px;
  border: 1px solid rgba(223, 111, 156, .3);
  border-radius: 999px;
  color: #a6426c;
  background: var(--pink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.calendar-today:hover {
  color: #fff;
  background: var(--pink);
}

.calendar-footer time {
  color: var(--muted);
  font-size: 12px;
}

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

.project {
  min-height: 142px;
  padding: 20px;
  border-top: 4px solid var(--blue);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project:nth-child(2) {
  border-top-color: var(--pink);
}

.project:nth-child(3) {
  border-top-color: var(--yellow);
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(116, 76, 94, .16);
}

.project h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: 0;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pagination {
  border-top: 1px solid var(--line);
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
  background: rgba(255, 249, 252, .48);
}

.pagination-links,
.pagination-numbers,
.pagination-jump {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-links {
  min-height: 38px;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-numbers {
  gap: 6px;
}

.pagination-edge,
.pagination-step,
.pagination-number {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(223, 111, 156, .24);
  border-radius: 6px;
  color: #a6426c;
  background: rgba(255, 255, 255, .74);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.pagination-edge,
.pagination-step {
  padding: 6px 11px;
}

.pagination-number {
  width: 36px;
}

.pagination a:hover {
  border-color: var(--pink);
  color: #fff;
  background: var(--pink);
  transform: translateY(-1px);
}

.pagination .is-current {
  border-color: var(--pink);
  color: #fff;
  background: var(--pink);
  box-shadow: 0 5px 14px rgba(223, 111, 156, .24);
}

.pagination .is-disabled {
  border-color: rgba(130, 111, 122, .12);
  color: #b6a8b0;
  background: rgba(255, 255, 255, .36);
  cursor: not-allowed;
}

.pagination-jump {
  min-height: 38px;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-jump input {
  width: 64px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.pagination-jump input:focus {
  border-color: var(--pink);
  outline: 3px solid rgba(223, 111, 156, .16);
}

.pagination-jump button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pink);
  border-radius: 6px;
  color: #fff;
  background: var(--pink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.pagination-jump button:hover {
  border-color: #b74d78;
  background: #b74d78;
}

.article-page {
  padding: 52px 0 24px;
}

.article-hero {
  position: relative;
  z-index: auto;
  max-width: 860px;
  margin: 0 auto;
  padding: 38px 0 30px;
  color: var(--hero-text);
  background: transparent;
  text-shadow: 0 2px 12px rgba(44, 24, 47, .9);
}

.article-hero h1 {
  margin: 12px 0 14px;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.article-card {
  max-width: 860px;
  min-width: 0;
  margin: 0 auto;
  padding: 32px;
}

.article-toc[hidden] {
  display: none;
}

.article-toc {
  position: fixed;
  top: 88px;
  right: max(16px, calc((100vw - 1408px) / 2));
  z-index: 8;
  width: 250px;
}

.article-toc-toggle {
  display: none;
}

.article-toc-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.article-toc-header {
  min-height: 52px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.article-toc-header strong {
  font-size: 15px;
}

.article-toc-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.article-toc-list {
  max-height: calc(100vh - 172px);
  margin: 0;
  padding: 10px 8px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 111, 156, .5) transparent;
}

.article-toc-item {
  margin: 1px 0;
}

.article-toc-link {
  position: relative;
  display: block;
  padding: 7px 10px 7px calc(10px + var(--toc-indent));
  overflow-wrap: anywhere;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.article-toc-level-1 .article-toc-link,
.article-toc-level-2 .article-toc-link {
  font-weight: 650;
}

.article-toc-link:hover {
  color: #a54169;
  background: rgba(255, 226, 238, .62);
}

.article-toc-link.is-active {
  border-left-color: var(--pink);
  color: #9f3e68;
  background: var(--pink-soft);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  scroll-margin-top: 92px;
}

.article-content h1:focus,
.article-content h2:focus,
.article-content h3:focus,
.article-content h4:focus,
.article-content h5:focus,
.article-content h6:focus {
  outline: none;
}

.article-content h1:focus-visible,
.article-content h2:focus-visible,
.article-content h3:focus-visible,
.article-content h4:focus-visible,
.article-content h5:focus-visible,
.article-content h6:focus-visible {
  outline: 3px solid rgba(223, 111, 156, .38);
  outline-offset: 6px;
  border-radius: 2px;
}

.article-toc-toggle {
  min-width: 86px;
  min-height: 42px;
  padding: 9px 13px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8f3d60;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(78, 49, 63, .16);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.article-toc-toggle-icon {
  width: 16px;
  height: 14px;
  display: grid;
  align-content: space-between;
}

.article-toc-toggle-icon span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.article-toc.is-open .article-toc-toggle-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.article-toc.is-open .article-toc-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.article-toc.is-open .article-toc-toggle-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.article-cover {
  margin: -32px -32px 30px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.article-cover img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-featured-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 30px;
  border-radius: 8px;
  background: #1f1b20;
}

.article-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
  font-size: 16px;
}

.article-content p,
.article-content li,
.article-content blockquote,
.article-content td,
.article-content th,
.article-content a,
.article-content code,
.article-block,
.article-block-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 .7em;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-content h2 {
  padding-left: 12px;
  border-left: 4px solid var(--pink);
  font-size: 25px;
}

.article-content h3 {
  color: #4a8390;
  font-size: 20px;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  margin: 1em 0;
}

.article-content a {
  color: #b64f79;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content img,
.article-content video,
.article-content iframe {
  display: block;
  max-width: 100%;
  margin: 24px auto;
  border-radius: 8px;
}

.article-content video {
  width: 100%;
  height: auto;
  background: #1f1b20;
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.article-block-text > :first-child,
.article-media-block:first-child {
  margin-top: 0;
}

.article-block-text > :last-child {
  margin-bottom: 0;
}

.article-block + .article-block {
  margin-top: 28px;
}

.article-media-block {
  margin-right: 0;
  margin-left: 0;
}

.article-media-block img,
.article-media-block video,
.article-media-block iframe {
  width: 100%;
  margin: 0 auto;
}

.article-media-block figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.article-embed-frame {
  background: #1f1b20;
}

.article-content blockquote {
  padding: 12px 18px;
  border-left: 4px solid var(--blue);
  color: var(--muted);
  background: rgba(221, 241, 245, .58);
}

.article-content code {
  padding: 2px 6px;
  border-radius: 4px;
  white-space: break-spaces;
  color: #9f3e68;
  background: #fff0f6;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.article-content pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content figure.highlight {
  margin: 20px 0;
  max-width: 100%;
  overflow-x: hidden;
  border-radius: 8px;
  background: #28232a;
}

.article-content figure.highlight table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.article-content figure.highlight pre,
.article-content figure.highlight code {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #f8edf3;
  background: transparent;
}

.article-content figure.highlight td {
  min-width: 0;
  padding: 14px;
}

.article-content figure.highlight .gutter {
  width: 4.2em;
  color: #9d8795;
  text-align: right;
  user-select: none;
  background: rgba(255, 255, 255, .04);
}

.article-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-navigation {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.article-navigation a {
  color: #b64f79;
}

.comments-card {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 28px 32px;
}

.comments-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.comments-heading h2 {
  margin: 0 0 4px;
  font-size: 23px;
  letter-spacing: 0;
}

.comments-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.giscus,
.giscus-frame {
  width: 100%;
}

.listing-page {
  min-height: 70vh;
  padding-top: 74px;
}

body > footer {
  margin-top: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 248, 251, .8);
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.visitor-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 19;
  width: 164px;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(238, 183, 205, .82);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 248, 251, .9);
  box-shadow: 0 10px 28px rgba(62, 38, 54, .16);
  backdrop-filter: blur(12px);
}

.visitor-counter::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(78, 148, 165, .14);
}

.visitor-counter-label,
.visitor-counter-unit {
  color: var(--muted);
  font-size: 12px;
}

.visitor-counter strong {
  min-width: 0;
  overflow: hidden;
  color: #b64f79;
  font-size: 18px;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-counter.is-unavailable strong {
  color: var(--muted);
  font-size: 12px;
}

#rembox {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 20;
  width: 280px;
  height: 320px;
  pointer-events: none;
}

#landlord {
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: 250px !important;
  height: 280px !important;
  margin: 0 !important;
  display: block !important;
}

#live2d {
  position: fixed !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: 250px !important;
  height: 280px !important;
  margin: 0 !important;
  transform: none !important;
}

.message {
  left: 12px !important;
  right: auto !important;
  bottom: 285px !important;
  margin: 0 !important;
}

#open_live2d {
  left: 5px !important;
  right: auto !important;
}

.click-charm {
  --move-x: 0px;
  --move-y: -70px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--charm-color, #ef7eaa);
  font-size: var(--charm-size, 18px);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(148, 76, 105, .22));
  animation: charm-burst 780ms cubic-bezier(.18, .74, .3, 1) forwards;
}

@keyframes charm-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--move-x)), calc(-50% + var(--move-y))) scale(1.25) rotate(22deg);
  }
}

@media (max-width: 1399px) {
  .article-toc {
    top: 84px;
    right: 16px;
    width: min(280px, calc(100vw - 32px));
    pointer-events: none;
  }

  .article-toc-toggle {
    margin-left: auto;
    display: flex;
    pointer-events: auto;
  }

  .article-toc-panel {
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }

  .article-toc.is-open .article-toc-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .article-toc-list {
    max-height: min(58vh, 520px);
  }
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 54px;
  }
}

@media (max-width: 820px) {
  .article-toc {
    top: 132px;
  }

  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .article-content h5,
  .article-content h6 {
    scroll-margin-top: 150px;
  }

  #anime-bg {
    display: none;
  }

  .hero,
  .grid,
  .projects {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero h1,
  .article-hero h1 {
    font-size: 44px;
  }

  .article-card,
  .comments-card {
    padding: 24px;
  }
  .article-cover {
    margin: -24px -24px 24px;
  }


  .article-navigation {
    flex-direction: column;
  }

  #rembox {
    transform: scale(.72);
    transform-origin: left bottom;
  }
}

@media (max-width: 620px) {
  .article-toc {
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }

  .pagination {
    padding: 16px 12px 18px;
  }

  .pagination-links {
    gap: 6px;
  }

  .pagination-edge,
  .pagination-step {
    padding: 6px 8px;
    font-size: 13px;
  }

  .pagination-number {
    width: 34px;
  }

  .visitor-counter {
    right: 10px;
    bottom: 10px;
    width: 132px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .hero h1,
  .article-hero h1 {
    font-size: 36px;
  }

  .article-card,
  .comments-card {
    padding: 20px;
  }
  .article-cover {
    margin: -20px -20px 20px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #anime-bg {
    display: none;
  }

  .project,
  .post,
  .nav-links a {
    transition: none;
  }

  .click-charm {
    display: none;
  }

  .article-toc-panel {
    transition: none;
  }

  .article-toc-link {
    transition: none;
  }
}
