/* Original arcade UI, inspired by NES-era menus. No framework dependency. */
@font-face { font-family: 'Fusion Pixel'; src: url('../fonts/fusion-pixel-12px-proportional-zh_hans.ttf.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
:root { --game-font: 'Fusion Pixel', 'Microsoft YaHei', monospace; --game-edge: #8ca9f3; }
body { font-family: var(--game-font); background: linear-gradient(90deg,#4467ce0a 2px,transparent 2px),linear-gradient(#4467ce0a 2px,transparent 2px),#070d25; background-size: 32px 32px; }
body :is(button,input,.feed-heading,.post-card-number,.post-card-body time) { font-family: var(--game-font); }
body :is(h1,h2,h3,h4,h5,.main-left--name,.header-menu a,.main-left--tag) { font-weight: 400; }
body .header { border-bottom: 4px solid #7596ef; box-shadow: 0 4px #00144c; background: #002fa7; }
body .header-menu > li > a { color: #fff; font-size: 24px; text-shadow: 2px 2px #001653; padding: 0 10px; }
body .header-menu > li > a[aria-current] { background: #001e76; box-shadow: inset 0 -4px #ffe18a; color: #ffe18a; }
body .header-menu > li > a:hover { background: #001e76; color: #ffe18a; }
body .header-search--input { border: 3px solid #92b2ff; box-shadow: inset 3px 3px #030c2b,3px 3px #00134b; font-size: 12px; background: #071537; }
body .header-menu--icon, body .main-left--menu .iconfont { display: none; }
body .main-left--block, body .pixel-panel, body .article, body .article-catelogue .catelogue, body .post-card {
  border: 4px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cpath fill='%238ca9f3' d='M4 0h4v2h2v2h2v4h-2v2H8v2H4v-2H2V8H0V4h2V2h2z'/%3E%3Cpath fill='%23081438' d='M4 4h4v4H4z'/%3E%3C/svg%3E") 4 / 4px / 0 stretch;
  box-shadow: 4px 4px #000617, inset 0 0 0 2px #142d6f;
  background-color: #0a1638;
  background-clip: padding-box;
}
body .main-left--info { background: #002fa7; padding: 14px; }
body .main-left--name { font: 36px/1 var(--game-font); text-shadow: 3px 3px #001451; }
body .main-left--tag { font-size: 12px; padding: 2px 4px; border: 0; background: #00175a; }
.player-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 2px solid #355497; color: #c9d8ff; font-size: 12px; background: #0a1e51; }
.player-hearts { display: flex; gap: 5px; }
.pixel-heart { width: 14px; height: 12px; display: inline-block; background: #ffce73; clip-path: polygon(14% 0,42% 0,42% 16%,58% 16%,58% 0,86% 0,86% 16%,100% 16%,100% 50%,86% 50%,86% 66%,72% 66%,72% 83%,58% 83%,58% 100%,42% 100%,42% 83%,28% 83%,28% 66%,14% 66%,14% 50%,0 50%,0 16%,14% 16%); }
body .main-left--motto { font: 12px/1.8 var(--game-font); }
body .main-left--statics > a { border: 2px solid #537ac7; background: #13285b; box-shadow: inset -2px -2px #05112e; }
body .main-left--statics > a > div span:first-child { font: 24px/1 var(--game-font); color: #ffdf8e; }
body .main-left--menu { padding: 10px; gap: 4px; }
body .main-left--menu > li > a { font: 12px/1.7 var(--game-font); border: 2px solid transparent; padding: 8px 10px; }
body .main-left--menu > li > a:hover { border-color: #7898ed; background: #002fa7; color: #fff; }
body .main-left--menu a[aria-current] { border-color: #9bb8ff; box-shadow: inset -3px -3px #001b6b; }
body .main-left--title, body .main-left--subtitle { font: 12px/1.5 var(--game-font); }
body .main-left--site { padding: 12px; }
body .main-left--title { color: #ffdf8e; }
body .feed-heading { font: 12px/1.5 var(--game-font); letter-spacing: 0; color: #c8d8ff; }
.save-screen { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border: 4px double #a0b9fc; background: #002fa7; box-shadow: 4px 4px #000617; }
.save-screen h1 { font: 24px/1.3 var(--game-font); color: #fff; text-shadow: 2px 2px #00154d; }
.save-screen p { font: 12px/1.6 var(--game-font); margin-top: 4px; color: #cfddff; }
.save-screen .save-counter { white-space: nowrap; font: 24px/1.3 var(--game-font); color: #ffe18a; }
body .post-card { position: relative; }
body .post-card:hover { border-image: none; border-color: #ffdf8e; box-shadow: 4px 4px #002fa7; }
body .post-card-cover { margin: 6px 6px 0; width: calc(100% - 12px); border: 2px solid #3e5e9e; }
body .post-card-number { font-size: 12px; padding: 4px 6px; top: 8px; left: 8px; box-shadow: 2px 2px #000; border: 2px solid #b8ccff; }
body .post-card-arrow { font-family: var(--game-font); background: #ffdf8e; color: #071335; border-left: 2px solid #071335; border-top: 2px solid #071335; }
body .post-card-body { padding: 14px; }
body .post-card-body h2 { font: 24px/1.25 var(--game-font); margin: 8px 0 10px; }
body .post-card-body time { font-size: 12px; letter-spacing: 0; color: #9cb8ff; }
body .post-card-body p { font-family: 'Microsoft YaHei', sans-serif; line-height: 1.7; }
body .post-card-tags a { font: 12px/1.4 var(--game-font); padding: 3px 6px; border: 0; background: #002fa7; color: #fff; box-shadow: 2px 2px #030a21; }
body .filter-panel { padding: 12px 10px; }
body .filter-panel h3 { margin: -12px -10px 14px; font: 12px/1.5 var(--game-font); padding: 10px; color: #ffdf8e; border-bottom: 3px solid #7294ee; }
body .filter-panel a { font: 12px/1.5 var(--game-font); }
body .rail-tags-list a { border: 2px solid #5279c9; box-shadow: 2px 2px #01081d; }
body .main-right--title h3 { font: 24px/1 var(--game-font); }
body .main-right--title { border-bottom: 3px solid #7294ee; padding: 12px; }
body .pixel-status { font: 12px/1 var(--game-font); }
body .main-right--content { font: 12px/1.8 var(--game-font); padding: 14px; }
body .pixel-landscape { height: 112px; background: url('../imgs/pixel-world.svg') center bottom / cover no-repeat; image-rendering: pixelated; border: 2px solid #648be3; margin: 14px -4px; }
body .pixel-landscape > *, body .pixel-landscape::after { display: none; }
body .main-right--content small { font: 12px/1.5 var(--game-font); letter-spacing: 0; }
body .operate-item { background: #002fa7; border: 3px solid #99b9ff; box-shadow: inset -4px -4px #00196e, inset 4px 4px #3761c1,4px 4px #000617; min-height: 64px; padding: 8px; }
body .operate-item span { font: 12px/1.2 var(--game-font); color: #fff; }
body .operate-item > span:first-child { font: 24px/1 var(--game-font); color: #ffdf8e; }
body .operate-item:hover { color: #fff; background: #1947bb; border-color: #ffdf8e; }
body .operate-item:active { box-shadow: inset 3px 3px #00196e,2px 2px #000617; }
body .article > .feed-heading { border-bottom: 3px solid #7294ee; padding: 8px 16px; color: #ffdf8e; }
body .article-title { font: 24px/1.4 var(--game-font); }
body .article-info { font-family: var(--game-font); }
body .article-catelogue .catelogue h3 { font: 24px/1 var(--game-font); border-bottom: 3px solid #7294ee; }
body .article-catelogue .toc-link { font: 12px/1.5 var(--game-font); padding: 5px 0; }
body .article-catelogue .toc-link:hover { color: #ffdf8e; }
body .article-catelogue .catelogue-2 { font: 12px/1.6 var(--game-font); }
body .markdown-body :is(h1,h2,h3) { font-family: var(--game-font); font-weight: 400; font-size: 24px !important; line-height: 1.3; color: #dee7ff !important; }
body .markdown-body h2 { border-bottom: 3px solid #476bc4 !important; }
body .markdown-body :is(h4,h5,h6) { color: #c1d2ff !important; }
body .markdown-body a { color: #b5ccff !important; }
body .markdown-body { font-family: 'Microsoft YaHei', sans-serif; }
body .main-left, body .main-right, body .article-catelogue { padding-right: 8px; }
@media (min-width: 981px) and (max-height: 850px) {
  .player-status { padding: 6px 12px; }
  body .main-left--menu { gap: 0; padding: 6px; }
  body .main-left--menu > li > a { padding: 6px 8px; }
  body .main-left--motto { padding-top: 8px; }
  body .main-left--github { padding: 5px 14px; }
}
.activity-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font: 12px/1.6 var(--game-font); color: #d3e0ff; }
.activity-summary strong { font: 24px/1 var(--game-font); color: #ffdf8e; }
.activity-summary > span { margin-left: auto; color: #94a9d7; }
.activity-months { display: flex; justify-content: space-between; color: #94a9d7; font-size: 12px; margin: 14px 0 6px; }
.activity-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-template-columns: repeat(var(--activity-weeks), minmax(0, 1fr)); grid-auto-flow: column; gap: 2px; }
body .activity-day, .activity-legend i { display: block; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; background: #1d2b50; }
body .activity-day.outside { visibility: hidden; }
body .activity-day.level-1, .activity-legend .level-1 { background: #002fa7; }
body .activity-day.level-2, .activity-legend .level-2 { background: #245be0; }
body .activity-day.level-3, .activity-legend .level-3 { background: #719bff; }
body .activity-day.level-4, .activity-legend .level-4 { background: #c4d7ff; }
body button.activity-day { cursor: pointer; position: relative; }
body button.activity-day::after { content: ''; position: absolute; inset: -2px; }
body button.activity-day:hover, body button.activity-day:focus-visible { outline: 2px solid #ffdf8e; outline-offset: 1px; z-index: 1; }
.activity-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; font-size: 12px; color: #94a9d7; }
.activity-legend i { width: 8px; height: 8px; }
.activity-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 14px; padding-top: 10px; border-top: 2px solid #314677; font-size: 12px; }
.activity-stats b { color: #ffdf8e; font-weight: 400; }
.activity-detail { min-height: 36px; margin-top: 10px; color: #d3e0ff; font: 12px/1.6 'Microsoft YaHei',sans-serif; overflow-wrap: anywhere; }
.activity-note { color: #94a9d7; font: 11px/1.6 'Microsoft YaHei',sans-serif; margin-top: 8px; }
@media (max-width: 1100px) { body .header-menu > li > a { font-size: 12px; } }
@media (max-width: 980px) { body .main-left,body .main-right,body .article-catelogue { padding-right: 0; } .player-status { padding: 8px 12px; } body .main-left--name { font-size: 24px; } body .header-menu > li > a { font-size: 12px; } }
@media (max-width: 600px) { .player-status { display: none; } body .post-card-body h2 { font-size: 24px; } .save-screen { padding: 10px 12px; } .save-screen .save-counter { font-size: 12px; } }
