@font-face {
  font-family: "Kaushan Script";
  src: url('../fonts/KaushanScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ma Shan Zheng";
  src: url('../fonts/MaShanZheng-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --text: #f2f5f3;
  --muted: #b3c1c1;
  --accent: #a9d6c5;
  --border: rgba(225,244,238,.15);
  --glass-tint: 9,18,23;
  --glass-opacity-start: .65;
  --glass-opacity-end: .5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #101b21;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.scenery { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: url('../images/bg1.webp') center / cover no-repeat; }
.site-header, .site-footer { width: min(1200px, calc(100% - 96px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { padding-block: 32px; gap: 24px; }
.wordmark { font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 20px; font-weight: 700; letter-spacing: 1.5px; }
main { flex: 1; display: grid; place-items: center; padding: 30px 24px 48px; }
.glass { background: rgba(29,45,51,.85); border: 1px solid var(--border); box-shadow: 0 24px 90px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: linear-gradient(135deg, rgba(99,128,128,.17), rgba(35,52,61,.26)); -webkit-backdrop-filter: blur(28px) saturate(125%); backdrop-filter: blur(28px) saturate(125%); }
}
.profile { width: min(100%, 720px); border-radius: 28px; padding: 36px 44px; animation: arrive .7s ease both; }
.profile {
  background: rgba(var(--glass-tint), .85);
  border-color: rgba(235,249,246,.2);
  border-top-color: rgba(245,255,252,.46);
  border-left-color: rgba(235,249,246,.3);
  box-shadow: 0 24px 70px rgba(0,0,0,.28), 0 5px 18px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(220,240,238,.06);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .profile {
    background: linear-gradient(125deg, rgba(var(--glass-tint), var(--glass-opacity-start)), rgba(var(--glass-tint), var(--glass-opacity-end)));
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    backdrop-filter: blur(12px) saturate(115%);
  }
}
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 2px; color: #c2d4ce; display: inline-flex; align-items: center; gap: 9px; }
.introduction { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h1 { font-family: "Kaushan Script", "Brush Script MT", cursive; font-size: clamp(58px, 8vw, 84px); letter-spacing: -2px; font-weight: 400; line-height: 1.3; margin: 0 0 13px -4px; text-shadow: 0 2px 14px rgba(0,0,0,.14); }
.subtitle { margin: 0; font-family: "Ma Shan Zheng", "KaiTi", cursive; font-weight: 400; font-size: 22px; line-height: 1.5; letter-spacing: 4px; color: #d0dbd7; }
.subtitle span { margin-inline: 2px; letter-spacing: 0; color: #78938c; font-weight: 300; }
.avatar-frame { position: relative; isolation: isolate; flex-shrink: 0; margin-right: 6px; padding: 7px; border-radius: 50%; border: 1px solid rgba(177,232,231,.3); background: rgba(12,28,34,.65); box-shadow: 0 0 24px rgba(122,220,227,.12); animation: avatar-pulse 5s ease-in-out infinite; }
.avatar-frame::before { content: ''; position: absolute; inset: -2px; z-index: -1; padding: 2px; border-radius: inherit; background: conic-gradient(from 0deg, transparent 0deg 35deg, rgba(136,236,238,.16) 65deg, #c4ffff 95deg, transparent 125deg 200deg, rgba(157,156,255,.25) 230deg, #b4bcff 255deg, transparent 285deg); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: avatar-orbit 8s linear infinite; pointer-events: none; }
.avatar-frame::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: linear-gradient(115deg, transparent 25%, rgba(186,245,255,.03) 38%, rgba(224,255,255,.28) 49%, rgba(177,213,255,.06) 59%, transparent 72%); background-size: 300% 100%; background-position: 150% 0; animation: avatar-sheen 6s ease-in-out infinite; pointer-events: none; }
.avatar { display: block; border-radius: 50%; object-fit: cover; width: 112px; height: 112px; filter: saturate(.8); box-shadow: 0 0 0 1px rgba(194,242,244,.14); }
@keyframes avatar-orbit { to { transform: rotate(360deg); } }
@keyframes avatar-pulse { 0%, 100% { box-shadow: 0 0 20px rgba(122,220,227,.1); } 50% { box-shadow: 0 0 30px rgba(122,220,227,.24), 0 0 48px rgba(143,152,242,.09); } }
@keyframes avatar-sheen { 0%, 20% { background-position: 150% 0; opacity: 0; } 35%, 55% { opacity: 1; } 75%, 100% { background-position: -50% 0; opacity: 0; } }
blockquote { margin: 28px 0 0; padding: 23px 0 28px; border-top: 1px solid var(--border); }
blockquote p { margin: 0 0 12px; font-size: 15px; letter-spacing: 1.2px; line-height: 1.9; color: #e1e8e4; overflow-wrap: anywhere; }
blockquote cite { font-style: normal; color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.explore { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.explore-item { text-align: left; padding: 10px 14px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 13px; background: rgba(211,237,225,.035); transition: background .2s, border-color .2s, transform .2s; }
.item-top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--accent); }
.item-symbol { display: block; width: 21px; height: 21px; font-size: 25px; line-height: 21px; }
.heart { font-size: 29px; }
.item-arrow { font-size: 14px; color: #91aaa5; transition: transform .2s; }
.item-title { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; }
.item-caption { color: var(--muted); font-size: 10px; margin-top: 4px; letter-spacing: .7px; }
@media (hover: hover) {
  .explore-item:hover { background: rgba(180,223,204,.1); border-color: rgba(196,232,217,.4); transform: translateY(-3px); }
  .explore-item:hover .item-arrow { transform: translate(2px,-2px); }
}
.site-footer { position: fixed; inset: auto 0 0; z-index: 10; width: 100%; margin: 0; padding: 0; }
.footer-bar { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 6px max(24px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border: 0; border-top: 1px solid rgba(245,255,252,.3); border-radius: 0; background: rgba(15,22,24,.84); box-shadow: 0 -8px 28px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.04); color: #cad2ce; }
.footer-brand { font-family: "Kaushan Script", "Brush Script MT", cursive; font-size: 19px; line-height: 1.3; padding-right: 20px; border-right: 1px solid rgba(225,244,238,.2); color: #edf4f0; }
.footer-copyright, .footer-motto, [data-dialog="flag"], .flag-dialog, .flag-dialog code { font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace; }
.footer-copyright { font-size: 11px; letter-spacing: .6px; line-height: 1.8; }
.footer-rights { color: #aab9b4; }
.footer-motto { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; font-size: 10px; letter-spacing: 2px; line-height: 1.8; }
.footer-line { display: block; width: 28px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.footer-runner { position: absolute; bottom: 100%; left: 0; width: 100%; height: 72px; overflow: hidden; pointer-events: none; color: #c8ded4; filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)); }
.runner-cat { position: absolute; left: calc(38.2% - 20px); bottom: 1px; width: 40px; height: 28px; color: #dedede; --runner-eye: #303030; filter: drop-shadow(0 0 3px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(0,0,0,.25)); will-change: transform; }
.runner-cat[data-ink="dark"] { color: #303030; --runner-eye: #dedede; filter: drop-shadow(0 0 3px rgba(255,255,255,.7)) drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.runner-eye { fill: var(--runner-eye); }
.runner-leg-front, .runner-leg-back { transform-box: fill-box; transform-origin: top; animation: runner-stride .18s steps(2, end) infinite alternate; }
.runner-leg-back { animation-direction: alternate-reverse; }
.runner-cat.is-jumping .runner-leg-front, .runner-cat.is-jumping .runner-leg-back { animation-play-state: paused; }
.runner-obstacle { position: absolute; left: 0; bottom: 1px; width: 12px; height: 16px; border: 2px solid #bdd1c7; border-radius: 2px 2px 0 0; background: rgba(25,40,34,.4); will-change: transform; }
.runner-obstacle:nth-of-type(2) { width: 16px; height: 12px; }
.runner-ground { position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: rgba(211,236,225,.3); }
@keyframes runner-stride { from { transform: translateX(-2px) scaleY(.65); } to { transform: translateX(2px) scaleY(1); } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .footer-bar { background: rgba(15,22,24,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.modal { color: var(--text); padding: 40px 32px 28px; border-radius: 22px; width: min(420px, calc(100% - 36px)); max-height: calc(100dvh - 40px); text-align: center; overflow-y: auto; background-color: rgba(24,43,49,.9); }
.modal::backdrop { background: rgba(4,14,19,.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal h2 { margin: 22px 0 14px; font-size: 24px; font-weight: 550; letter-spacing: -.6px; }
.modal p { line-height: 1.8; color: #c4d2cd; font-size: 14px; margin: 12px 0; overflow-wrap: anywhere; }
.modal code { color: var(--accent); font-size: 14px; }
.modal img { display: block; max-width: 100%; height: auto; margin: 22px auto; border-radius: 12px; }
.modal .qr-image { width: 200px; }
.modal .dialog-note { font-size: 11px; color: var(--muted); }
.close-dialog { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; font-size: 26px; font-weight: 300; color: var(--muted); border: none; border-radius: 50%; background: transparent; }
.dialog-confirm { border: 1px solid rgba(190,229,211,.3); border-radius: 9px; background: rgba(180,223,204,.1); padding: 10px 30px; font-size: 12px; margin-top: 14px; }
.dialog-confirm:hover, .close-dialog:hover { background: rgba(180,223,204,.16); }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .profile { width: 760px; padding: 40px 48px; } }
@media (max-width: 600px) {
  .site-header { width: calc(100% - 40px); }
  .site-header { padding-block: 24px; }
  main { padding: 18px 20px 36px; }
  .profile { padding: 26px 24px; border-radius: 22px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .introduction { gap: 12px; }
  h1 { font-size: 58px; letter-spacing: -1.5px; }
  .subtitle { font-size: 18px; letter-spacing: 1px; }
  .subtitle span { margin-inline: 2px; }
  .avatar { width: 76px; height: 76px; }
  .avatar-frame { padding: 5px; margin: 0; }
  .avatar-frame::after { inset: 5px; }
  blockquote p { font-size: 13px; letter-spacing: .4px; }
  .explore { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .explore-item { padding: 9px 12px; }
  .item-top { margin-bottom: 6px; }
  body { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
  .footer-bar { gap: 4px 12px; padding: 5px max(16px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .footer-brand { font-size: 17px; padding-right: 12px; }
  .footer-copyright { font-size: 10px; }
  .footer-rights { display: none; }
  .footer-motto { flex-basis: 100%; justify-content: center; padding-top: 4px; border-top: 1px solid rgba(225,244,238,.12); font-size: 9px; letter-spacing: 2px; }
  .footer-line { width: 20px; }
}
@media (max-width: 360px) {
  .profile { padding-inline: 19px; }
  h1 { font-size: 48px; }
  .avatar { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cat-stage { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.cat-stage::backdrop { background: rgba(0,0,0,.15); }
.cat-controls { position: absolute; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); z-index: 1; display: flex; gap: 10px; }
.cat-controls button { padding: 11px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 24px; background: rgba(18,24,23,.88); color: #f2f5f3; font-size: 12px; }
.cat-controls button:hover { background: #34423e; }
.running-cat { position: absolute; top: 0; left: 0; width: clamp(128px, 20vw, 192px); height: auto; pointer-events: none; user-select: none; image-rendering: pixelated; will-change: transform; }
