@font-face {
  font-family: "IPixLocal";
  src: url("./中文像素字体0.2_猫啃网/中文像素字体/IPIX_0_2/IPix.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0c12;
  --panel: #101626;
  --line: #2b3b64;
  --text: #e0eaff;
  --accent: #7aa2ff;
  --accent-bright: #9cc4ff;
  --accent-neon: #00d4ff;
  --hot: #ff7ea8;
  --ok: #7dffb1;
  --pixel: 0 0 0 2px #000, 0 0 0 4px var(--line);
  --font-body: "IPixLocal", "Noto Sans SC", sans-serif;
  --font-pixel: "IPixLocal", "Silkscreen", "VT323", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(122, 162, 255, 0.14), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(255, 126, 168, 0.1), transparent 40%),
    linear-gradient(rgba(122, 162, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  font-weight: 700;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

html {
  scroll-behavior: smooth;
}

body {
  padding: 42px 28px;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(4, 7, 14, 0.12) 2px,
    rgba(4, 7, 14, 0.12) 3px
  );
  animation: crt-flicker 6s infinite;
}

.scanline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(2, 4, 10, 0.28) 100%);
}

.scanline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(140, 180, 255, 0.05),
    transparent
  );
  animation: crt-roll 7s linear infinite;
}

@keyframes crt-roll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(100vh + 280px));
  }
}

@keyframes crt-flicker {
  0%, 100% {
    opacity: 1;
  }
  7% {
    opacity: 0.92;
  }
  8% {
    opacity: 1;
  }
  52% {
    opacity: 0.96;
  }
  53.5% {
    opacity: 1;
  }
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 24px;
  height: fit-content;
  max-height: calc(100vh - 48px);
}

.friends-panel {
  padding: 18px;
  scroll-margin-top: 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.friends-panel::-webkit-scrollbar {
  display: none;
}

.panel {
  position: relative;
  background: rgba(16, 22, 38, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 3px solid var(--line);
  box-shadow: var(--pixel);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.panel::before {
  top: -7px;
  left: -7px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

.panel::after {
  bottom: -7px;
  right: -7px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}

.profile-panel {
  padding: 24px 18px;
  position: sticky;
  top: 24px;
  height: fit-content;
}

.avatar-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border: 3px solid var(--accent-bright);
  box-shadow: 0 0 12px rgba(156, 196, 255, 0.35);
  display: grid;
  place-items: center;
  background: #0f1320;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px dashed rgba(156, 196, 255, 0.45);
  animation: avatar-spin 14s linear infinite;
  pointer-events: none;
}

@keyframes avatar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  width: 84px;
  height: 84px;
  image-rendering: pixelated;
  background:
    linear-gradient(180deg, #8ec6ff 0 40%, #f1c9ac 40% 62%, #3f5f9f 62% 100%);
  clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
}

.avatar.avatar-custom {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
}

.name {
  text-align: center;
  margin: 0;
  color: #f4f8ff;
  font-size: 30px;
  font-weight: 700;
  font-family: var(--font-pixel);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 10px rgba(122, 162, 255, 0.5),
    0 0 24px rgba(122, 162, 255, 0.25),
    3px 3px 0 rgba(0, 0, 0, 0.9);
}

.subtitle {
  text-align: center;
  margin: 8px 0 14px;
  opacity: 0.88;
  font-size: 15px;
  font-family: var(--font-pixel);
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--line);
  padding: 3px 8px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ok);
  background: rgba(125, 255, 177, 0.08);
}

.badge:first-child::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  animation: blink 1.3s steps(1) infinite;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #d4dfff;
  border: 2px solid transparent;
  padding: 8px 10px 8px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: "IPixLocal", "Noto Sans SC", sans-serif;
  letter-spacing: 0.08em;
  transition: 0.2s ease;
}

.menu a::before {
  content: "▶";
  position: absolute;
  left: 8px;
  top: 50%;
  translate: 0 -50%;
  font-size: 10px;
  color: var(--accent);
  opacity: 0;
  transition: 0.15s ease;
}

.menu a:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateX(4px);
}

.menu a:hover::before,
.admin-menu a.active::before {
  opacity: 1;
  animation: blink 0.9s steps(1) infinite;
}

.admin-menu a.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(122, 162, 255, 0.12);
}

.admin-link {
  margin-top: 16px;
  flex-shrink: 0;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #111;
  background: var(--ok);
  border: 2px solid #101626;
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.35),
    3px 3px 0 #000;
  padding: 9px 10px;
  font-weight: 700;
  font-family: "IPixLocal", "Noto Sans SC", sans-serif;
  letter-spacing: 0.14em;
  font-size: 14px;
  cursor: pointer;
  transition: 0.08s ease;
}

.admin-link:hover {
  background: #9dffca;
}

.admin-link:active {
  transform: translate(3px, 3px);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.35);
}

.content-panel {
  padding: 0 22px 22px;
}

.terminal-title {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -22px 18px;
  background: #0d1424;
  border-bottom: 3px solid var(--line);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title::after {
  content: "▮▮▮";
  margin-left: auto;
  color: var(--ok);
  font-size: 12px;
  letter-spacing: 2px;
  animation: blink 2s steps(1) infinite;
}

.terminal-title p {
  margin: 0 0 0 6px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--accent-neon);
  text-shadow:
    0 0 6px rgba(0, 212, 255, 0.7),
    0 0 16px rgba(0, 212, 255, 0.35);
}

.dot {
  width: 10px;
  height: 10px;
  border: 2px solid #000;
}

.red {
  background: #ff6a8a;
}

.yellow {
  background: #ffdc74;
}

.green {
  background: #7cffad;
}

.block {
  border: 3px solid var(--line);
  box-shadow: var(--pixel);
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(8, 12, 24, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#site-about,
#project-list,
#post-list,
#friend-list,
#log-list,
#contact-email,
#contact-github,
#contact-other {
  color: #f4f8ff;
}

h2 {
  margin: 0 0 12px;
  color: var(--accent-neon);
  font-size: 22px;
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
}

.block:not(.post-reading) > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow:
    0 0 7px rgba(0, 212, 255, 0.55),
    2px 2px 0 rgba(0, 0, 0, 0.85);
}

.block:not(.post-reading) > h2::before,
.friends-panel > h2::before {
  content: "◆";
  color: var(--hot);
  font-size: 0.6em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

.friends-panel > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow:
    0 0 7px rgba(0, 212, 255, 0.55),
    2px 2px 0 rgba(0, 0, 0, 0.85);
}

.block:not(.post-reading) > h2::after,
.friends-panel > h2::after {
  content: "";
  flex: 1;
  height: 0;
  margin-left: 4px;
  border-bottom: 2px dashed var(--line);
}

p,
li {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.tag {
  display: inline-block;
  min-width: 50px;
  margin-right: 10px;
  padding: 2px 6px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--hot);
  border: 2px solid var(--hot);
  background: rgba(255, 126, 168, 0.1);
  vertical-align: middle;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.friend-list {
  display: grid;
  gap: 10px;
}

.friend-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--line);
  background: rgba(15, 22, 40, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 10px;
}

.friend-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.friend-name {
  font-size: 18px;
  color: #f0f5ff;
}

.friend-desc {
  font-size: 15px;
  opacity: 0.92;
}

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-filters input,
.blog-filters select {
  border: 2px solid var(--line);
  background: #0b1020;
  color: var(--text);
  padding: 8px 10px;
  font-size: 15px;
  min-width: 170px;
}

.post-card {
  position: relative;
  border: 2px solid var(--line);
  background: rgba(15, 22, 40, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 12px;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
  transition: border-color 0.15s ease;
}

.post-card::before,
.post-card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transition: border-color 0.15s ease;
}

.post-card::before {
  top: -2px;
  right: -2px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
}

.post-card::after {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid var(--line);
  border-left: 2px solid var(--line);
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card:hover::before,
.post-card:hover::after {
  border-color: var(--accent);
}

.post-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 2px solid var(--line);
  margin-bottom: 8px;
}

.post-chip-row {
  margin: 8px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  border: 2px solid var(--line);
  color: #e6edff;
  padding: 2px 8px;
  font-size: 13px;
  font-family: var(--font-pixel);
  background: rgba(122, 162, 255, 0.1);
}

.post-meta {
  font-family: var(--font-pixel);
  color: #a8c0ff;
  font-size: 15px;
  margin-bottom: 6px;
}

.post-title {
  margin: 0 0 6px;
  color: #f2f6ff;
  font-size: 22px;
  font-family: var(--font-pixel);
  text-shadow: 0 0 8px rgba(122, 162, 255, 0.35);
}

.post-link {
  color: #f2f6ff;
  text-decoration: none;
}

.post-link:hover {
  color: #a9c6ff;
  text-decoration: underline;
}

.post-summary {
  margin: 0;
  opacity: 0.96;
}

.post-content {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.post-content p {
  font-size: 16px;
  line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 6px 0;
}

.post-content pre,
.markdown-preview pre {
  margin: 8px 0;
  border: 2px solid var(--line);
  background: #0a1020;
  padding: 10px;
  overflow: auto;
}

.post-content code,
.markdown-preview code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 15px;
  color: #c9e0ff;
}

.post-content img,
.markdown-preview img {
  max-width: 100%;
  border: 2px solid var(--line);
  margin: 8px 0;
}

.post-layout {
  max-width: min(1080px, 94vw);
}

.post-reading-shell {
  max-width: min(860px, 100%);
  margin: 0 auto;
}

.post-reading {
  max-width: min(76ch, 100%);
  margin: 0 auto 18px;
}

.post-reading-shell > .block {
  max-width: min(76ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.post-reading .post-title {
  font-size: clamp(24px, 3.4vw, 34px);
}

.post-reading .post-summary,
.post-reading .post-content p,
.post-reading .post-content li,
.post-reading .post-content blockquote {
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-reading .post-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.typing::after {
  content: "▋";
  margin-left: 6px;
  color: var(--ok);
  animation: blink 1s infinite;
}

.typing {
  white-space: pre-line;
  font-family: var(--font-pixel);
  font-size: 19px;
  color: #d5e2ff;
  text-shadow: 0 0 7px rgba(125, 255, 177, 0.3);
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    position: static;
  }

  .side-col {
    gap: 18px;
    position: static;
    max-height: none;
  }

  .friends-panel {
    overflow-y: visible;
    flex: none;
  }

  .admin-layout.with-side {
    grid-template-columns: 1fr;
  }

  .post-layout {
    max-width: 100%;
  }

  .post-reading-shell,
  .post-reading {
    max-width: 100%;
  }

  .markdown-preview {
    height: clamp(180px, 30vh, 260px);
    max-width: 100%;
  }

  #post-content {
    min-height: clamp(180px, 30vh, 260px);
    max-width: 100%;
  }
}

.admin-layout {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.admin-layout.with-side {
  grid-template-columns: 250px 1fr;
  max-width: 1260px;
}

.admin-side {
  top: 20px;
}

.admin-side .menu {
  margin-bottom: 14px;
}

.logout-btn {
  display: block;
  width: 100%;
  background: #e9efff;
  color: #111;
  font-family: "IPixLocal", "Noto Sans SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.admin-side .name {
  font-size: 26px;
}

.admin-side .subtitle {
  font-size: 13px;
}

.admin-menu {
  max-height: none;
  overflow: visible;
}

.admin-side .avatar-wrap {
  width: 96px;
  height: 96px;
}

.admin-side .avatar {
  width: 68px;
  height: 68px;
}

.admin-side .menu a {
  padding: 8px 10px 8px 26px;
  font-size: 14px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.editor-toolbar {
  align-items: center;
}

.editor-toolbar .admin-btn {
  padding: 7px 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

#inline-image-file {
  display: none;
}

.checkbox-row label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 2px solid var(--line);
  background: rgba(122, 162, 255, 0.08);
}

.admin-form {
  display: grid;
  gap: 10px;
}

.setting-item {
  display: grid;
  gap: 6px;
}

.settings-panel {
  border: 2px solid var(--line);
  background: rgba(12, 20, 36, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin-bottom: 8px;
}

.settings-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-pixel);
  border-bottom: 2px solid transparent;
}

.settings-panel[open] summary {
  border-bottom-color: var(--line);
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  content: "＋";
  float: right;
}

.settings-panel[open] summary::after {
  content: "－";
}

.settings-panel-content {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.field-label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-pixel);
  color: #e8f0ff;
}

.field-help {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 2px solid var(--line);
  background: #0b1020;
  color: var(--text);
  padding: 10px;
  font-size: 16px;
  font-family: "Noto Sans SC", sans-serif;
}

#post-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: clamp(220px, 34vh, 320px);
  max-height: 52vh;
  line-height: 1.85;
  font-size: clamp(15px, 1.8vw, 17px);
  resize: vertical;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

#admin-username,
#admin-password {
  width: 240px;
  border: 2px solid var(--line);
  background: #0b1020;
  color: var(--text);
  padding: 10px;
  font-size: 16px;
  font-family: "Noto Sans SC", sans-serif;
}

.admin-btn {
  border: 2px solid #12182a;
  background: var(--accent);
  color: #051028;
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.32),
    3px 3px 0 #000;
  transition: 0.08s ease;
}

.admin-btn:hover {
  filter: brightness(1.12);
  transform: translate(-1px, -1px);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.32),
    4px 4px 0 #000,
    0 0 14px rgba(122, 162, 255, 0.4);
}

.admin-btn:active {
  transform: translate(3px, 3px);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.32);
}

.admin-btn.ghost {
  background: rgba(122, 162, 255, 0.1);
  color: #d4e4ff;
  border-color: var(--line);
}

.admin-btn.ghost:hover {
  background: rgba(122, 162, 255, 0.22);
  border-color: var(--accent);
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    inset 2px 2px 0 rgba(255, 255, 255, 0.12),
    4px 4px 0 #000,
    0 0 12px rgba(122, 162, 255, 0.3);
}

.admin-btn.danger {
  background: #ff7ea8;
  color: #2a0a14;
}

.admin-btn.danger:hover {
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.32),
    inset 2px 2px 0 rgba(255, 255, 255, 0.32),
    4px 4px 0 #000,
    0 0 14px rgba(255, 126, 168, 0.45);
}

.markdown-preview {
  width: 100%;
  height: clamp(220px, 34vh, 320px);
  border: 2px solid var(--line);
  background: rgba(10, 16, 30, 0.9);
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  max-width: 100%;
  margin: 0;
  line-height: 1.85;
  font-size: clamp(15px, 1.8vw, 17px);
  box-sizing: border-box;
}

.markdown-preview:empty::before {
  content: "预览区";
  opacity: 0.55;
}

.markdown-preview p,
.markdown-preview li,
.markdown-preview blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-preview code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-status {
  margin-top: 10px;
  font-size: 14px;
}

.auth-status.ok {
  color: var(--ok);
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
}

.login-card .admin-form {
  gap: 12px;
}

.login-card .admin-form input {
  width: 100%;
}

.login-card .admin-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 11px 12px;
}

.login-card .admin-btn:last-child {
  margin-bottom: 4px;
}

::selection {
  background: var(--accent);
  color: #05070d;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #0b1020;
  border-left: 2px solid var(--line);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.blog-filters input:focus,
.blog-filters select:focus,
#admin-username:focus,
#admin-password:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .scanline,
  .scanline::after,
  .avatar-wrap::before,
  .badge:first-child::before,
  .menu a:hover::before,
  .admin-menu a.active::before,
  .terminal-title::after,
  .typing::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
