:root {
  color-scheme: dark;
  --background: #0b0e13;
  --surface: #171b23;
  --card: #20252f;
  --ink: #f0f2f5;
  --muted: #a4a9b2;
  --subtle: #7d8592;
  --line: rgb(223 232 249 / 12%);
  --link: #accaf1;
  --glass: rgb(29 35 46 / 58%);
  --grid-line: rgb(223 232 249 / 3%);
  --bloom: 171, 204, 244;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #eef0f3;
  --surface: #fafbfc;
  --card: #eceff3;
  --ink: #262c35;
  --muted: #606b7b;
  --subtle: #758091;
  --line: rgb(40 58 82 / 14%);
  --link: #315f91;
  --glass: rgb(255 255 255 / 56%);
  --grid-line: rgb(40 58 82 / 4%);
  --bloom: 60, 106, 160;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body { margin: 0; font-family: var(--font); background: var(--background); color: var(--ink); -webkit-font-smoothing: antialiased; transition: background-color 400ms, color 400ms; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
p { text-wrap: pretty; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--ink); color: var(--background); }
.scenery { position: fixed; inset: -20px; pointer-events: none; background: linear-gradient(180deg, rgb(9 14 24 / 94%) 0%, rgb(9 14 24 / 72%) 48%, rgb(9 14 24 / 96%) 100%), url('/photo-02.webp') center 60% / cover; filter: saturate(.42) blur(8px); transition: opacity 600ms; }
.scenery::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 0%, var(--background) 78%); }
[data-theme="light"] .scenery { opacity: .13; }
.ambient-grid { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 80%); }
.ambient-grid canvas { display: block; width: 100%; height: 100%; }
.site-header { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px 36px; }
.wordmark { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; letter-spacing: .7px; }
.brand-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.appearance-controls { display: flex; gap: 6px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 11px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--muted); transition: color 200ms, background-color 200ms, border-color 200ms, transform 200ms; }
.icon-button svg { width: 21px; height: 21px; }
.icon-button:hover { color: var(--ink); background: var(--glass); border-color: var(--line); transform: translateY(-2px); }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms, transform 150ms; z-index: 5; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.moon-icon { display: none; }
[data-theme="light"] .moon-icon { display: initial; }
[data-theme="light"] .sun-icon { display: none; }
.motion-toggle[aria-pressed="true"] { color: var(--subtle); opacity: .6; }
.home-stage { position: relative; z-index: 1; min-height: 100svh; min-height: 100dvh; display: grid; place-items: center; padding: 110px 24px; }
.home-core { width: min(100%, 660px); display: flex; align-items: center; flex-direction: column; padding-bottom: 12px; }
.identity { display: flex; align-items: center; flex-direction: column; animation: arrive 800ms cubic-bezier(.22, 1, .36, 1) both; }
.avatar-orbit { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.avatar-orbit::before { content: ""; position: absolute; inset: -35px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--bloom), .07), transparent 65%); }
.profile-avatar { position: relative; width: 88px; height: 88px; border-radius: 50%; padding: 4px; background: rgb(255 255 255 / 4%); border: 1px solid rgb(255 255 255 / 25%); box-shadow: 0 8px 42px rgb(0 0 0 / 20%); object-fit: cover; }
.orbit-track { position: absolute; inset: 5px; border: 1px solid var(--line); border-radius: 50%; transform: rotateX(56deg) rotateZ(-25deg); }
.orbit-tracer { position: absolute; inset: 5px; border-radius: 50%; transform: rotateX(56deg) rotateZ(-25deg); animation: orbit 22s linear infinite; }
.orbit-tracer::before { content: ""; position: absolute; top: -2px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--link); box-shadow: 0 0 14px 3px rgb(var(--bloom), .32); }
h1 { margin: 5px 0 0; font-size: 40px; font-weight: 500; letter-spacing: -2px; line-height: 1.1; }
.social-links { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }
.social-links .icon-button { width: 40px; height: 40px; }
.social-links .icon-button svg { width: 19px; height: 19px; }
.dock { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; gap: 12px; margin-top: 49px; padding: 0 30px; perspective: 1000px; animation: arrive 900ms 90ms cubic-bezier(.22, 1, .36, 1) both; }
.dock-item { --rotate-x: 0deg; --rotate-y: 0deg; position: relative; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; min-height: 102px; padding: 20px 8px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgb(222 236 255 / 5%), rgb(222 236 255 / 1%)); color: var(--muted); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%), 0 12px 24px rgb(0 0 0 / 3%); transform: perspective(600px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)); transition: background 250ms, color 250ms, border-color 250ms, box-shadow 250ms, transform 150ms; }
.dock-item > svg { width: 25px; height: 25px; }
.dock-item > span:first-of-type { font-size: 12px; font-weight: 400; letter-spacing: .3px; }
.dock-item:hover { color: var(--ink); border-color: rgb(var(--bloom), .3); background: radial-gradient(circle at 50% 0%, rgb(var(--bloom), .1), transparent 80%), var(--glass); box-shadow: 0 16px 40px rgb(0 0 0 / 16%), inset 0 1px 0 rgb(var(--bloom), .18); }
.dock-item:hover > svg { filter: drop-shadow(0 0 7px rgb(var(--bloom), .3)); }
.dock-indicator { position: absolute; bottom: -8px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--link); opacity: 0; transform: translateY(-3px); transition: opacity 200ms, transform 200ms; }
.dock-item:hover .dock-indicator { opacity: 1; transform: translateY(0); }
.latest-update { display: flex; align-items: center; gap: 10px; margin: 35px 0 0; padding: 10px; border: 0; background: none; color: var(--subtle); font-size: 11px; animation: arrive 900ms 170ms cubic-bezier(.22, 1, .36, 1) both; }
.latest-update time { font-variant-numeric: tabular-nums; font-size: 10px; }
.update-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--link); box-shadow: 0 0 8px rgb(var(--bloom), .5); }
.update-arrow { margin-left: 3px; transition: transform 180ms; }
.latest-update:hover { color: var(--ink); }
.latest-update:hover .update-arrow { transform: translate(2px, -2px); }
.site-footer { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 25px 36px; font-size: 10px; color: var(--subtle); }
.site-footer > span:first-child { font-size: 16px; color: var(--muted); letter-spacing: -.5px; }
.site-footer button { padding: 10px; margin: -10px; border: 0; background: none; font-size: 10px; color: var(--muted); }
.site-footer button:hover { color: var(--ink); }
.footer-coordinate { letter-spacing: 5px; opacity: .4; }
@keyframes arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit { from { transform: rotateX(56deg) rotateZ(-25deg); } to { transform: rotateX(56deg) rotateZ(335deg); } }
.content-viewer { width: min(830px, calc(100% - 40px)); max-width: none; max-height: min(800px, calc(100dvh - 80px)); padding: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 32px 140px rgb(0 0 0 / 40%); overflow: hidden; }
.content-viewer[open] { display: flex; flex-direction: column; }
.content-viewer[data-panel="sites"], .content-viewer[data-panel="tools"], .content-viewer[data-panel="updates"], .content-viewer[data-panel="contact-details"] { width: min(530px, calc(100% - 40px)); }
.content-viewer::backdrop { background: rgb(5 8 14 / 48%); backdrop-filter: blur(18px); }
[data-theme="light"] .content-viewer::backdrop { background: rgb(60 70 85 / 18%); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 19px 25px 14px 30px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.panel-bar > h2 { margin: 0; font-size: 17px; letter-spacing: .2px; font-weight: 500; }
.panel-bar .icon-button { width: 36px; height: 36px; border-radius: 50%; padding: 8px; }
.panel-content { min-height: 0; overflow-y: auto; padding: 28px 30px 30px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
[data-content-panel] { min-width: 0; padding: 0; }
[data-content-panel] > h2, [data-content-panel] > .section-heading > h2 { display: none; }
.section-heading { display: flex; justify-content: flex-end; gap: 15px; margin-bottom: 18px; align-items: center; }
h3 { font-size: 20px; font-weight: 500; margin: 0; letter-spacing: -.5px; }
h4 { margin: 0; font-size: 12px; font-weight: 500; }
.text-link { display: inline-flex; gap: 5px; padding: 8px 0; align-items: center; border: 0; background: none; color: var(--link); font-size: 12px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 6px; gap: 18px; }
.site-link + .site-link { border-top: 1px solid var(--line); }
.site-link strong { display: block; font-size: 17px; font-weight: 500; }
.site-link small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.site-link > span:last-child { color: var(--subtle); font-size: 20px; }
.site-link:hover { color: var(--link); }
.tool-card { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tool-card > svg { flex-shrink: 0; }
.tool-card > span:nth-child(2) { flex: 1; min-width: 0; }
.tool-card strong { font-size: 16px; display: block; font-weight: 500; }
.tool-card small { display: block; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 7px; }
.tool-arrow { font-size: 21px; color: var(--subtle); }
.steam-panel { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 24px; }
.steam-identity { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.steam-avatar { width: 68px; height: 68px; border-radius: 18px; margin-bottom: 20px; }
.steam-identity h3 { font-size: 18px; }
.steam-id { font-size: 10px; color: var(--muted); margin: 10px 0 4px; }
.member-since { color: var(--subtle); font-size: 10px; margin-top: 15px; }
.copy-steam { font-size: 11px; min-height: 34px; }
.steam-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: center; }
.game { --rotate-x: 0deg; --rotate-y: 0deg; display: block; border-radius: 14px; background: var(--card); overflow: hidden; transform: perspective(800px) rotateX(var(--rotate-x)) rotateY(var(--rotate-y)); transition: transform 180ms; }
.game-art { overflow: hidden; aspect-ratio: 184 / 69; }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms; }
.game:hover img { transform: scale(1.05); }
.game-description { padding: 17px; }
.game-description p { margin: 22px 0 0; }
.game-description strong { font-size: 30px; font-weight: 500; letter-spacing: -1px; }
.game-description p > span { margin-left: 4px; color: var(--muted); font-size: 10px; }
.source-date { color: var(--subtle); font-size: 9px; text-align: right; margin: 16px 0 0; }
.music-panel { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 35px; }
.featured-artwork { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 35px rgb(0 0 0 / 20%); }
.featured-song h3 { margin: 22px 0 0; font-size: 21px; }
.featured-song > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 10px 0 3px; }
.featured-song .text-link { font-size: 11px; }
.list-label { color: var(--muted); font-size: 11px; margin: 0 0 10px; }
.song-list { display: flex; flex-direction: column; gap: 4px; }
.song-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border: 0; border-radius: 10px; color: var(--ink); background: none; transition: background-color 180ms; }
.song-row:hover, .song-row[aria-pressed="true"] { background: var(--card); }
.song-row > img { width: 44px; height: 44px; flex-shrink: 0; object-fit: cover; border-radius: 5px; }
.song-row > span:nth-child(2) { flex: 1; min-width: 0; }
.song-row strong { font-size: 13px; line-height: 1.5; font-weight: 500; display: block; overflow-wrap: anywhere; }
.song-row small { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.song-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--link); opacity: 0; }
.song-row[aria-pressed="true"] .song-dot { opacity: 1; }
.library-info { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; margin: 20px 10px 0; font-size: 9px; line-height: 1.6; color: var(--subtle); }
.photo-progress { font-size: 11px; color: var(--subtle); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-tile { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; }
.photo-tile > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 350ms; }
.photo-tile:hover > img { transform: scale(1.05); }
.photo-tile > span { display: block; padding: 10px 12px; color: var(--muted); font-size: 10px; }
.more-photos { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; margin: 23px auto 0; border: 1px solid var(--line); border-radius: 22px; background: none; color: var(--muted); font-size: 11px; min-height: 44px; }
.more-photos:hover { color: var(--ink); background: var(--card); }
.photo-viewer { width: min(1160px, calc(100% - 32px)); height: min(90dvh, 950px); max-height: calc(100dvh - 24px); padding: 45px 18px 18px; border: 0; background: transparent; color: #ffffff; overflow: visible; }
.photo-viewer[open] { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 16px; align-items: center; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 86%); backdrop-filter: blur(10px); }
.photo-viewer figure { min-width: 0; margin: 0; text-align: center; }
.photo-viewer figure > img { display: block; max-width: 100%; max-height: 72dvh; width: auto; height: auto; object-fit: contain; margin: auto; border-radius: 7px; }
.photo-viewer figcaption { font-size: 12px; line-height: 1.5; margin-top: 18px; color: rgb(255 255 255 / 70%); }
#viewer-status { min-height: 17px; margin: 8px 0 0; font-size: 12px; color: rgb(255 255 255 / 70%); }
.photo-viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; background: rgb(255 255 255 / 8%); color: #ffffff; }
.photo-viewer button:hover { background: rgb(255 255 255 / 18%); }
.viewer-close { position: absolute; top: 0; right: 16px; font-size: 26px; }
.viewer-prev, .viewer-next { font-size: 30px; }
.update-list { list-style: none; padding: 0; margin: 0; }
.update-list li { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 14px; padding: 20px 3px; align-items: baseline; }
.update-list li + li { border-top: 1px solid var(--line); }
.update-list time { font-size: 11px; color: var(--subtle); }
.update-list p { font-size: 14px; line-height: 1.7; margin: 0; }
.contact-detail { display: flex; align-items: baseline; gap: 18px; padding: 20px 3px; margin: 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.contact-detail > span:first-child { width: 50px; flex-shrink: 0; color: var(--muted); }
.contact-detail > strong { flex: 1; font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.contact-detail > span:last-child:not(:first-child) { color: var(--subtle); }
.copy-status { position: fixed; z-index: 100; inset: auto auto 32px 50%; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 13px 22px; border: 1px solid var(--line); background: var(--ink); color: var(--background); border-radius: 24px; font-size: 12px; line-height: 1.5; box-shadow: 0 4px 24px rgb(0 0 0 / 10%); transition: opacity 180ms, transform 180ms; }
.copy-status[data-visible="true"] { opacity: 1; transform: translate(-50%, 0); }
.noscript-message { position: fixed; bottom: 70px; left: 20px; right: 20px; text-align: center; font-size: 12px; }
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .site-footer { padding: 20px 23px; }
  .home-stage { padding: 105px 16px; }
  .home-core { padding-bottom: 20px; }
  .avatar-orbit { width: 135px; height: 135px; }
  .profile-avatar { width: 80px; height: 80px; }
  h1 { font-size: 35px; }
  .social-links { margin-top: 19px; }
  .dock { gap: 8px; padding: 0; margin-top: 40px; }
  .dock-item { min-height: 87px; padding: 18px 5px; gap: 12px; border-radius: 14px; }
  .dock-item > svg { width: 23px; height: 23px; }
  .dock-item > span:first-of-type { font-size: 10px; }
  .latest-update { font-size: 10px; margin-top: 28px; }
  .content-viewer { width: calc(100% - 24px); max-height: calc(100dvh - 40px); border-radius: 21px; }
  .content-viewer[data-panel] { width: calc(100% - 24px); }
  .panel-bar { padding: 14px 15px 10px 20px; }
  .panel-content { padding: 20px; }
  .music-panel { grid-template-columns: 1fr; gap: 26px; }
  .featured-song { text-align: center; }
  .featured-artwork { display: block; max-width: 210px; margin: auto; }
  .featured-song h3 { font-size: 20px; margin-top: 19px; }
  .steam-panel { grid-template-columns: 1fr; gap: 25px; }
  .steam-identity { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 17px; align-items: start; }
  .steam-avatar { grid-row: 1 / 4; width: 64px; height: 64px; margin: 0; }
  .steam-id { margin: 7px 0 0; }
  .copy-steam { min-height: 28px; }
  .member-since { grid-column: 2; margin-top: 8px; }
  .game-description { padding: 14px 12px; }
  .game-description strong { font-size: 25px; }
  h4 { font-size: 11px; min-height: 29px; }
  .steam-games { gap: 12px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-tile > span { font-size: 9px; padding: 10px; }
  .photo-viewer { padding: 47px 0 0; width: calc(100% - 20px); }
  .photo-viewer[open] { grid-template-columns: 1fr; }
  .photo-viewer figure > img { max-height: 70dvh; }
  .viewer-prev, .viewer-next { position: absolute; bottom: 4px; }
  .viewer-prev { left: 25%; }
  .viewer-next { right: 25%; }
  .viewer-close { right: 0; }
  .contact-detail { gap: 10px; }
  .contact-detail > strong { font-size: 12px; }
}
@media (max-height: 650px) and (min-width: 601px) {
  .home-stage { padding: 80px 24px; }
  .avatar-orbit { width: 105px; height: 105px; }
  .profile-avatar { width: 70px; height: 70px; }
  h1 { font-size: 32px; }
  .social-links { margin-top: 12px; }
  .dock { margin-top: 25px; }
  .dock-item { min-height: 82px; }
  .latest-update { margin-top: 20px; }
}
:root[data-motion="paused"] *, :root[data-motion="paused"] *::before { animation-play-state: paused !important; }
:root[data-motion="paused"] .game, :root[data-motion="paused"] .dock-item { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .game, .dock-item { transform: none; }
}
