:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #292b2a; background: #f8f7f4; }
* { box-sizing: border-box; }
html { cursor: url("../assets/cursor-default.png"), default; }
a, button { cursor: url("../assets/cursor-pointer.png"), pointer; }
body { margin: 0; -webkit-user-select: none; user-select: none; }
.loading { display: none; }
.js .loading { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; background: #f8f7f4; }
.loading-ring { width: 26px; height: 26px; border: 2px solid #e4e6df; border-top-color: #747970; border-radius: 50%; animation: loading-spin 1s linear infinite; }
.js.is-ready .loading { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.illustrations { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; }
.is-ready .illustrations { opacity: 1; }
.illustration { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: translateX(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.22, 1, .36, 1); }
.illustration.is-active { opacity: 1; transform: translateX(0); }
/* The outgoing image covers the viewport while the incoming image slides into place. */
.illustration.is-leaving { transform: translateX(0); }
.illustration-edge { left: -24px; right: auto; width: 24px; }
.transition-particles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.illustration-controls { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; width: min(440px, calc(100vw - 40px)); pointer-events: none; }
.illustration-controls > * { pointer-events: auto; }
.illustration-source { max-width: 100%; padding: 7px 11px; border: 1px solid #ffffff26; border-radius: 8px; color: #ffffffe6; background: #17201966; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; line-height: 1.5; text-align: right; text-decoration: none; overflow: hidden; overflow-wrap: anywhere; }
.illustration-source[hidden] { display: none; }
.illustration-source > span { display: block; position: relative; left: 100%; transform: translateX(-100%); }
.illustration-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; max-height: 25svh; overflow-y: auto; }
.illustration-navigation[hidden] { display: none; }
.js:not(.is-ready) .illustration-navigation { visibility: hidden; }
.illustration-dot { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.illustration-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #ffffff60; box-shadow: 0 0 0 .5px #00000026, 0 1px 3px #00000026; transition: transform .2s ease, background .2s ease; }
.illustration-dot[aria-current="true"]::before { background: #ffffffcc; transform: scale(1.3); }
.illustration-dot[aria-busy="true"]::before { background: #fff; animation: dot-loading .8s ease-in-out infinite alternate; }
.illustration-dot:hover::before { background: #fff; }
.illustration-dot:focus-visible { outline: 1px solid #fff; outline-offset: -2px; }
.illustration-dot:disabled { opacity: .25; cursor: default; }
@keyframes dot-loading { to { opacity: .35; } }
.illustration-source[href]:hover { color: #fff; text-decoration: underline; }
.illustration-source:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.js:not(.is-ready) .illustration-source { visibility: hidden; }
main { --page-gutter: 40px; position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--page-gutter) 24px; transition: padding-top .8s cubic-bezier(.22, 1, .36, 1), padding-bottom .8s cubic-bezier(.22, 1, .36, 1); }
.profile { width: min(100%, 380px); padding: 48px 24px 36px; text-align: center; border: 1px solid #ffffffa6; border-radius: 24px; background: rgb(248 247 244 / 72%); -webkit-backdrop-filter: blur(5px) saturate(150%); backdrop-filter: blur(5px) saturate(150%); box-shadow: 0 16px 64px #18221c1a; }
.js .profile { visibility: hidden; }
.js.is-ready .profile { visibility: visible; animation: arrive .8s ease-out both; }
.portrait { width: 140px; height: 140px; margin: 0 auto; border-radius: 50%; padding: 6px; background: #fff; box-shadow: 0 0 0 1px #e9e7e2, 0 8px 32px #292b2a09; }
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; color: #565955; font-size: 16px; transform-origin: center; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.portrait:hover img { transform: rotate(15deg); }
h1 { display: flex; align-items: flex-end; justify-content: center; height: 1.2em; padding-bottom: .22em; font-family: "Josefin Sans", sans-serif; margin: 28px 0 0; font-size: 38px; line-height: 1.2; font-weight: 400; letter-spacing: -.6px; }
.name-letter { display: inline-block; flex: none; font-size: 1em; line-height: 1; text-box-trim: trim-end; text-box-edge: cap alphabetic; transition: font-size 1s cubic-bezier(.22, 1, .36, 1); }
.name-letter:hover { font-size: 1.3em; }
.name-space { flex: none; width: .3em; }
.divider { width: 24px; height: 1px; margin: 28px auto 21px; background: #d4d5ce; }
.links { display: flex; justify-content: center; align-items: center; gap: 12px; }
.social { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #747970; text-decoration: none; transition: color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.social-x { --brand-color: #000; }
.social-telegram { --brand-color: #26a5e4; }
.social-steam { --brand-color: #1b2838; }
.social-bilibili { --brand-color: #00aeec; }
.social-character { --brand-color: #4c94dd; }
.social svg { display: block; width: 22px; height: 22px; fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.social svg.icon-line { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transform-box: view-box; }
/* Match Bilibili's roughly 2.4px visible outline regardless of viewBox scale. */
.social svg.icon-line > path, .social svg.icon-line > circle { stroke-width: 2.4px; vector-effect: non-scaling-stroke; }
.icon-character { display: grid; width: 26px; height: 22px; transform-origin: center; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.social-character .icon-outline { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.oc-eye { transform-box: fill-box; transform-origin: center; transition: d .24s ease-out, stroke-width .24s ease-out; }
.social-character.is-blinking .oc-eye { animation: oc-blink .18s ease-in-out; }
.social-character:hover .oc-eye-right, .social-character:focus-visible .oc-eye-right { d: path("M11.3 10.3L9.7 11.5L11.3 12.7"); stroke-width: 1.3; animation: none; }
@keyframes oc-blink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(.08); } }
/* Balance the visible marks, keeping X slightly smaller than its neighbors. */
.social svg.icon-x { width: 22.95px; height: 22.95px; }
.social svg.icon-telegram { width: 24px; height: 24px; }
.social svg.icon-steam { width: 24px; height: 24px; }
.social:not(.social-character):hover svg, .social:not(.social-character):focus-visible svg, .social-character:hover .icon-character, .social-character:focus-visible .icon-character { transform: scale(1.07) rotate(10deg); }
.social:hover, .social:focus-visible { color: var(--brand-color, #303a31); background: #eaece4; }
.social:focus-visible { outline: 2px solid #737f68; outline-offset: 4px; }
.label { position: absolute; top: 52px; left: 50%; transform: translate(-50%, -3px); color: #656b61; font-size: 11px; letter-spacing: .2px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.social:hover .label, .social:focus-visible .label { opacity: 1; transform: translate(-50%, 0); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { main { --page-gutter: 24px; padding: var(--page-gutter) 16px; } .profile { padding: 44px 14px 32px; } .portrait { width: 128px; height: 128px; } .links { gap: 6px; } .social { width: 44px; height: 44px; } }
/* Use the same lower position in every orientation; reserve room on short screens. */
main { padding-top: calc(var(--page-gutter) + clamp(0px, calc(100svh - 500px), 30svh)); }
@media (prefers-reduced-motion: reduce) { .illustration-dot::before { transition: none; animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .js.is-ready .profile, .loading-ring, .social-character.is-blinking .oc-eye { animation: none; } main, .social, .social svg, .icon-character, .portrait img, .name-letter, .label, .illustration, .oc-eye { transition: none; } }
