:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --soft: #f7f7f6;
  --ink: #242529;
  --muted: #65666b;
  --faint: #75767b;
  --line: #ededed;
  --strong-line: #d4d4d5;
  --accent: #242529;
  --wash: #f8f8f7;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131313;
  --surface: #181818;
  --soft: #202020;
  --ink: #f1f1f1;
  --muted: #b3b3b5;
  --faint: #a1a1a6;
  --line: #2b2b2d;
  --strong-line: #48484b;
  --accent: #f1f1f1;
  --wash: #1b1b1b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #c9d9f5; color: #242529; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; touch-action: manipulation; }
button, summary { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, summary, .emoji-model):focus-visible { outline: 2px solid #7897c8; outline-offset: 5px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 30; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 18px; }
.skip:focus { top: 15px; }
.welcome { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 6px 20px; background: linear-gradient(100deg, #edc8cb, #efe7c8 48%, #c8d8f7); color: #42444a; font-size: 11px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #527b65; box-shadow: 0 0 0 3px #527b6512; }
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.nav { width: min(1440px, calc(100% - 64px)); height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 23px; font-weight: 550; letter-spacing: -.8px; line-height: 1; }
.brand img { width: 31px; height: 31px; object-fit: cover; border: 1px solid var(--line); border-radius: 50%; }
.brand-dot { color: var(--ink); }
nav { display: flex; align-items: center; gap: 2px; border-radius: 999px; padding: 5px; background: var(--soft); }
nav a { position: relative; border-radius: 999px; padding: 7px 18px; color: var(--muted); font-size: 12px; transition: color .25s, background .25s, transform .25s var(--ease); }
nav a:active { transform: scale(.95); }
nav a:hover, nav a[aria-current="location"] { background: var(--surface); color: var(--ink); }
.nav-actions { justify-self: end; display: flex; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 47px; padding: 11px 20px; border: 1px solid transparent; border-radius: 16px; font-size: 13px; font-weight: 500; color: var(--bg); background: var(--ink); transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 16px #00000012; }
.button:active { transform: scale(.98); }
.button.small { min-height: 36px; padding: 7px 16px; border-radius: 999px; font-size: 11px; gap: 16px; }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--strong-line); }
.button.secondary:hover { background: color-mix(in srgb, var(--surface) 65%, transparent); }
[data-theme="dark"] .nav-actions .button { color: var(--ink); background: var(--soft); border-color: var(--strong-line); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; border: 0; border-radius: 50%; transition: background .2s; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 0; }
::view-transition-new(root) { z-index: 1; }
.theme-revealing * { transition: none !important; }
.theme-fading, .theme-fading * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
.hero { position: relative; isolation: isolate; width: min(1440px, calc(100% - 48px)); min-height: 610px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 92px 32px 90px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #f8f7f4; color: var(--ink); text-align: center; --ink: #242529; --bg: #f8f7f4; --muted: #68686e; --faint: #727278; --strong-line: #cececf; --surface: #fff; }
.hero::before, .hero::after { content: ''; position: absolute; inset: -12%; z-index: -1; pointer-events: none; }
.hero::before { background: radial-gradient(ellipse at 99% 0%, #a9c3f2b8, transparent 45%), radial-gradient(ellipse at 0% 100%, #edc5cf9c, transparent 42%), radial-gradient(ellipse at 53% 110%, #f0e8c675, transparent 45%); animation: hero-drift 24s ease-in-out infinite alternate; }
.hero::after { background: radial-gradient(ellipse at 10% 15%, #c9b9ecb8, transparent 55%), radial-gradient(ellipse at 95% 85%, #b5dfd3b0, transparent 55%), radial-gradient(ellipse at 50% 100%, #f1d1b68c, transparent 50%); opacity: 0; animation: hero-tint 24s ease-in-out infinite alternate; }
[data-theme="dark"] .hero { background: #141a26; --ink: #eff2fa; --bg: #141a26; --muted: #bac2d4; --faint: #aab3c8; --strong-line: #46516a; --surface: #1d2638; }
[data-theme="dark"] .hero::before { background: radial-gradient(ellipse at 99% 0%, #334c7bb8, transparent 45%), radial-gradient(ellipse at 0% 100%, #5136578c, transparent 42%), radial-gradient(ellipse at 53% 110%, #203d4780, transparent 45%); }
[data-theme="dark"] .hero::after { background: radial-gradient(ellipse at 10% 15%, #423068b3, transparent 55%), radial-gradient(ellipse at 95% 85%, #21544c8c, transparent 55%), radial-gradient(ellipse at 50% 100%, #59402a66, transparent 50%); }
@keyframes hero-drift { to { transform: translate3d(-5%, 3%, 0) scale(1.1) rotate(-8deg); } }
@keyframes hero-tint { to { opacity: .85; transform: translate3d(4%, -3%, 0) scale(1.08); } }
h1 { max-width: 900px; font-size: clamp(52px, 5.6vw, 80px); font-weight: 500; letter-spacing: -3px; line-height: 1.22; text-wrap: balance; }
.gradient-text { display: block; color: inherit; }
.hero-intro { margin-top: 25px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: 11px; line-height: 1.9; color: var(--faint); }
.introduction-cards { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 18px; align-items: stretch; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.card-kicker { display: flex; justify-content: flex-end; align-items: center; font-size: 9px; letter-spacing: 1.3px; color: var(--muted); }
.tiny-star { color: var(--faint); font-size: 20px; line-height: 1; }
.profile-preview { display: flex; flex-direction: column; align-items: center; padding: 25px 25px 0; background: var(--soft); }
.profile-preview .card-kicker { align-self: stretch; }
.avatar { margin-top: 23px; width: 94px; height: 94px; border: 5px solid var(--surface); border-radius: 50%; object-fit: cover; box-shadow: 0 3px 15px #00000008; }
.profile-preview h2 { margin-top: 13px; font-size: 21px; font-weight: 500; letter-spacing: -.5px; }
.profile-preview h2 span { color: var(--muted); font-size: 14px; font-weight: 400; }
.profile-preview p { font-size: 18px; margin-top: 3px; }
.profile-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 15px 0 23px; }
.profile-tags span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9px; }
.card-bottom-link { display: flex; justify-content: space-between; gap: 12px; align-self: stretch; margin-top: auto; border-top: 1px solid var(--line); padding: 16px 0 19px; color: var(--muted); font-size: 10px; }
.card-bottom-link:hover { color: var(--ink); }
.hello-card { display: flex; flex-direction: column; padding: 25px 25px 0; background: var(--soft); }
.hello-image { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 210px; }
.hello-image img, .emoji-model { display: block; width: 100%; height: auto; max-width: 200px; aspect-ratio: 1; }
.emoji-model { cursor: grab; touch-action: none; border-radius: 50%; }
.emoji-model:active { cursor: grabbing; }
.hello-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 16px 0 19px; font-size: 12px; }
.hello-caption small { font-size: 9px; color: var(--muted); }
.section { margin-top: 140px; }
.eyebrow { margin-bottom: 18px; color: var(--faint); font-size: 10px; letter-spacing: 1.5px; font-weight: 400; }
.section h2, .contact-section h2 { font-size: clamp(32px, 3.5vw, 46px); font-weight: 450; line-height: 1.32; letter-spacing: -1.5px; }
.section-head p, .section-heading p { max-width: 560px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 65px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; }
.about-copy { max-width: 610px; }
.about-copy p { margin-bottom: 17px; color: var(--muted); font-size: 14px; line-height: 2; }
.about-copy .about-lead { margin-bottom: 23px; color: var(--ink); font-size: 26px; font-weight: 400; line-height: 1.6; letter-spacing: -.6px; }
.aside-text { text-decoration: line-through; text-decoration-thickness: 1px; }
.fragment-trigger { padding: 0; border: 0; border-radius: 2px; background: transparent; font: inherit; letter-spacing: inherit; }
.fragment-trigger span { display: inline-block; transform-origin: 50% 70%; animation: fragment-hint 1.07s ease-in-out infinite; }
.fragment-trigger span + span { animation-duration: 1.31s; animation-delay: -.23s; }
@keyframes fragment-hint {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  12.5% { transform: translate(-.35px, .1px) rotate(-.5deg); }
  25% { transform: translate(.4px, -.2px) rotate(.4deg); }
  37.5% { transform: translate(-.2px, -.3px) rotate(-.25deg); }
  50% { transform: translate(.3px, .15px) rotate(.5deg); }
  62.5% { transform: translate(-.4px, .2px) rotate(-.4deg); }
  75% { transform: translate(.2px, -.1px) rotate(.3deg); }
  87.5% { transform: translate(-.15px, -.15px) rotate(-.2deg); }
}
.fragment-trigger[aria-disabled="true"] { cursor: progress; }
.about-fragments { position: relative; display: grid; }
.fragment-panel { grid-area: 1 / 1; min-width: 0; }
.fragment-panel[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.fragment-notes p { margin-bottom: 8px; }
.fragment-dust { position: absolute; inset: -32px -10px -140px; z-index: 1; overflow: clip; pointer-events: none; }
.fragment-particle { position: absolute; white-space: pre; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.interests-layout { display: grid; grid-template-columns: 1.18fr 1fr; gap: 20px; }
.games-card { padding: 32px; }
.interest-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 32px; }
.interest-label { color: var(--muted); font-size: 11px; letter-spacing: .8px; }
.interests-layout p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 10px; }
.game-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.game-link { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 91px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--soft); transition: transform .3s var(--ease), border-color .2s, background .2s; }
.game-link:hover { transform: translateY(-3px); border-color: var(--strong-line); background: var(--surface); }
.game-icon { display: grid; place-items: center; width: 34px; flex: none; }
.game-icon img { width: 32px; height: 32px; object-fit: contain; }
.game-icon .official-icon { border-radius: 7px; }
.game-name { font-size: 12px; font-weight: 450; }
.link-arrow { margin-left: auto; color: var(--faint); font-size: 15px; flex: none; transition: transform .25s var(--ease); }
a:hover > .link-arrow { transform: translate(2px, -2px); }
.other-interests { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.interest-card { position: relative; padding: 28px 30px; background: var(--soft); }
.interest-heading img { margin-left: auto; object-fit: contain; }
.interest-card h3 { margin-top: 10px; font-size: 25px; font-weight: 450; line-height: 1.5; letter-spacing: -.5px; }
.ai-card { background: radial-gradient(ellipse at 100% 0%, #bfd0ed30, transparent 70%), var(--soft); }
.ai-decoration { display: flex; justify-content: space-between; align-items: center; padding: 11px 15px; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ai-decoration i { color: var(--muted); font-size: 16px; font-style: normal; }
[data-theme="dark"] .interest-heading img[src$="paw-solid.svg"], [data-theme="dark"] .game-icon img[src$="csgo.svg"] { filter: invert(.9); }
.gallery-disclosure { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.gallery-disclosure > summary { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 23px 26px; border-radius: 24px; background: var(--soft); cursor: pointer; list-style: none; transition: background .2s; }
.gallery-disclosure > summary::-webkit-details-marker { display: none; }
.gallery-disclosure > summary::marker { content: ''; }
.gallery-disclosure > summary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, #dceaff, #eee1f8 55%, #ffe6d8); opacity: .38; transition: opacity .35s var(--ease); }
.gallery-disclosure > summary:hover::before { opacity: .7; }
.gallery-disclosure[open] { border-color: color-mix(in srgb, #8da9d7 48%, var(--line)); box-shadow: 0 10px 32px #7190bf0a; }
.gallery-disclosure[open] > summary::before { opacity: .88; }
[data-theme="dark"] .gallery-disclosure > summary::before { background: linear-gradient(110deg, #253c59, #3a2c4b 55%, #4a332a); }
.gallery-disclosure[open] .gallery-chevron { color: #6784b6; }

.gallery-toggle-label { font-size: 14px; }
.gallery-total { margin-left: auto; color: var(--muted); font-size: 11px; }
.gallery-chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.gallery-disclosure .when-open, .gallery-disclosure[open] .when-closed { display: none; }
.gallery-disclosure[open] .when-open { display: inline; }
.gallery-disclosure[open] .gallery-chevron { transform: rotate(180deg); }
.gallery-content { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .68s cubic-bezier(.4, 0, .2, 1), opacity .45s ease; }
.gallery-clip { min-height: 0; overflow: hidden; }
.gallery-inner { padding: 26px; transform: translateY(0); transition: transform .68s var(--ease); }
.gallery-disclosure[data-expanded="false"] .gallery-content { grid-template-rows: 0fr; opacity: 0; }
.gallery-disclosure[data-expanded="false"] .gallery-inner { transform: translateY(-10px); }
.gallery-disclosure[data-expanded="false"] .when-open { display: none; }
.gallery-disclosure[data-expanded="false"] .when-closed { display: inline; }
.gallery-disclosure[data-expanded="false"] .gallery-chevron { transform: rotate(0); }
.gallery-disclosure[data-expanded="false"] > summary::before { opacity: .38; }

.memory.full-frame img { aspect-ratio: 16/9; object-fit: contain; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.filters { position: relative; display: inline-flex; gap: 3px; padding: 5px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); flex-wrap: wrap; }
.filters button { padding: 8px 15px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; transition: color .2s, background .2s, box-shadow .2s; }
.filters button small { margin-left: 6px; color: var(--faint); font-size: 8px; }
.filters button[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px #00000006; }
.filters button:hover { color: var(--ink); }
.gallery-hint { color: var(--faint); font-size: 11px; white-space: nowrap; }
.memorygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.memory { min-width: 0; }
.memory.wide { grid-column: 1 / -1; }
.memory-open { position: relative; display: block; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 26px; background: var(--soft); overflow: hidden; text-align: left; }
.memory { --memory-accent: #879ccc; }
.memory[data-category="PEAK"] { --memory-accent: #94aa7a; }
.memory[data-category="Minecraft"] { --memory-accent: #70a393; }
.memory[data-category="MuseDash"] { --memory-accent: #d28baa; }
.memory[data-category="漫展"] { --memory-accent: #c49e75; }
.memory[data-category="光遇"] { --memory-accent: #84abca; }
.memory[data-category="随手收集"] { --memory-accent: #a493c8; }
.memory-open { background: color-mix(in srgb, var(--memory-accent) 6%, var(--soft)); border-color: color-mix(in srgb, var(--memory-accent) 18%, var(--line)); transition: border-color .3s, background .3s, box-shadow .3s; }
.memory-open:hover, .memory-open:focus-visible { background: color-mix(in srgb, var(--memory-accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--memory-accent) 70%, var(--line)); box-shadow: 0 8px 24px color-mix(in srgb, var(--memory-accent) 15%, transparent); }
.memory-open img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; transition: transform .6s var(--ease); }
.memory.wide img { aspect-ratio: 2.9; }
.memory.portrait img { aspect-ratio: 1; object-fit: contain; }
.memory-open::before { content: attr(data-category); position: absolute; top: 28px; left: 28px; z-index: 1; padding: 4px 11px; border: 1px solid #ffffff50; border-radius: 999px; background: #17171b85; color: #fff; backdrop-filter: blur(8px); font-size: 10px; }
.memory-open:hover img { transform: scale(1.018); }
.zoom { position: absolute; bottom: 27px; right: 27px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #ffffff60; border-radius: 50%; background: #fffffff0; color: #29292e; font-size: 15px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .3s var(--ease); }
.memory-open:hover .zoom, .memory-open:focus-visible .zoom { opacity: 1; transform: translateY(0); }
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 26px; margin-top: 20px; color: var(--faint); font-size: 11px; }
.convention-note { margin-right: auto; }
.gallery-count { margin-left: auto; font-size: 10px; }
.contact-section { margin-top: 140px; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; padding: 60px; border: 1px solid var(--line); border-radius: 30px; background: var(--soft); }
.contact-intro p { max-width: 330px; margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.portal-art { width: 128px; height: auto; margin-top: 25px; }
.contactlinks { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.contactlinks a { display: flex; align-items: center; gap: 14px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 13px; transition: transform .3s var(--ease), border-color .2s; }
.contactlinks a:hover { transform: translateX(3px); border-color: var(--strong-line); }
.contactlinks svg { width: 20px; height: 20px; flex: none; }
.contactlinks .gmail-link svg { height: 16px; }
.anonymous-message { position: relative; isolation: isolate; display: flex; align-items: center; gap: 24px; overflow: hidden; padding: 36px 42px; margin-top: 20px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.anonymous-message::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 100% 50%, #afc9f229, transparent 62%); }
.message-icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.message-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.anonymous-copy h3 { font-size: 22px; line-height: 1.5; font-weight: 450; letter-spacing: -.5px; }
.anonymous-copy p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.anonymous-message .button { margin-left: auto; flex: none; }
footer { margin-top: 100px; padding: 36px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 28px; }
.footer-brand { font-size: 24px; gap: 0; }
.footer-year { color: var(--faint); font-size: 10px; }
.back-top { margin-left: auto; color: var(--muted); font-size: 12px; }
.back-top span { margin-left: 14px; }
.footer-credits { margin-top: 27px; color: var(--faint); font-size: 9px; }
.lightbox { width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 18px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 25px 100px #0004; }
.lightbox::backdrop { background: #141419b8; backdrop-filter: blur(12px); }
.lightboxhead { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding-left: 5px; }
.lightbox-category { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.lightbox button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 19px; }
.lightbox-image-wrap { display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 12px; background: var(--soft); }
.lightbox-image { max-width: 100%; max-height: 70dvh; object-fit: contain; }
.lightboxfoot { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 14px; }
.lightbox-counter { min-width: 55px; color: var(--muted); font-size: 10px; letter-spacing: 2px; text-align: center; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1000px) {
  .nav { gap: 16px; }
  nav a { padding-inline: 13px; }
  .hero { min-height: 570px; }
  .introduction-cards { grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; }
  .profile-preview, .hello-card { padding-inline: 20px; }
  .profile-preview h2 { font-size: 19px; }
  .profile-preview h2 span { font-size: 12px; }
  .profile-tags { gap: 4px; }
  .profile-tags span { padding-inline: 7px; }
  .hello-caption { flex-wrap: wrap; gap: 4px; }
  .about-layout { gap: 48px; }
  .games-card, .interest-card { padding: 25px; }
  .game-links { gap: 9px; }
  .game-link { gap: 9px; padding-inline: 10px; }
  .game-name { font-size: 11px; }
  .game-link .link-arrow { display: none; }
  .contact-panel { padding: 44px; gap: 55px; }
  .anonymous-message { padding: 30px; gap: 20px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 140px; }
  .wrap { width: calc(100% - 36px); }
  .welcome { min-height: 31px; font-size: 9px; }
  .nav { height: auto; min-height: 104px; grid-template-columns: 1fr auto; gap: 14px; padding-block: 16px 12px; }
  .brand { font-size: 21px; }
  .brand img { width: 29px; height: 29px; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; padding: 3px; }
  nav a { padding: 5px 20px; font-size: 11px; }
  .nav-actions { grid-row: 1; grid-column: 2; gap: 8px; }
  .nav-actions .button { min-height: 32px; padding: 5px 12px; font-size: 10px; gap: 12px; }
  .theme-toggle { width: 32px; height: 32px; }
  .hero { min-height: 500px; padding: 66px 18px; margin-top: 14px; border-radius: 24px; }
  h1 { font-size: clamp(43px, 9vw, 62px); letter-spacing: -1.8px; line-height: 1.3; }
  .hero-intro { margin-top: 20px; font-size: 12px; }
  .hero-actions { margin-top: 25px; gap: 8px; }
  .hero-actions .button { padding: 10px 15px; min-height: 43px; font-size: 11px; gap: 15px; border-radius: 14px; }
  .hero-note { max-width: 250px; margin-top: 18px; font-size: 10px; }
  .introduction-cards { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .sky-card { grid-column: 1 / -1; grid-row: 1; }
  .profile-preview { padding: 18px 16px 0; }
  .profile-preview .avatar { width: 78px; height: 78px; margin-top: 17px; }
  .profile-preview h2 { font-size: 17px; }
  .profile-preview h2 span { font-size: 11px; }
  .profile-preview p { font-size: 16px; }
  .profile-tags { margin: 13px 0 18px; }
  .profile-tags span { padding: 2px 6px; font-size: 8px; }
  .card-kicker { font-size: 7px; letter-spacing: .8px; }
  .card-bottom-link { padding: 13px 0 16px; font-size: 8px; gap: 4px; }
  .hello-card { padding: 18px 16px 0; }
  .hello-image { min-height: 155px; }
  .hello-image img, .emoji-model { max-width: 160px; }
  .hello-caption { padding: 13px 0 16px; font-size: 11px; }
  .hello-caption small { font-size: 8px; }
  .card { border-radius: 22px; }
  .section { margin-top: 82px; }
  .about-section { padding-block: 36px; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .about-section h2 br { display: none; }
  .section h2, .contact-section h2 { font-size: 32px; letter-spacing: -1px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .section-head p { font-size: 12px; margin-top: 12px; }
  .about-copy p { font-size: 13px; }
  .about-copy .about-lead { font-size: 22px; }
  .section-head { margin-bottom: 28px; align-items: start; }
  .interests-layout { grid-template-columns: 1fr; gap: 14px; }
  .games-card, .interest-card { padding: 24px; }
  .game-links { gap: 9px; margin-top: 25px; }
  .game-link { min-height: 80px; padding: 14px 10px; gap: 9px; border-radius: 14px; }
  .game-name { font-size: 11px; }
  .game-icon { width: 29px; }
  .game-icon img { width: 27px; height: 27px; }
  .other-interests { grid-template-rows: auto auto; gap: 14px; }
  .interest-card h3 { font-size: 24px; }
  .gallery-disclosure > summary { padding: 20px; gap: 12px; }
  .gallery-inner { padding: 16px; }
  .gallery-toolbar { flex-wrap: wrap; gap: 13px; margin-bottom: 19px; }
  .filters { padding: 4px; gap: 4px; width: 100%; justify-content: flex-start; border-radius: 18px; }
  .filters button { padding: 7px 9px; font-size: 10px; }
  .filters button small { margin-left: 3px; font-size: 7px; }
  .gallery-hint { margin-left: auto; font-size: 9px; }
  .memorygrid { gap: 12px; }
  .memory { grid-column: 1 / -1; }
  .memory.portrait { grid-column: auto; }
  .memory-open { padding: 8px; border-radius: 20px; }
  .memory-open img { border-radius: 12px; }
  .memory.wide img { aspect-ratio: 2.17; }
  .memory.portrait img { aspect-ratio: 2/3; object-fit: contain; }
  .memory-open::before { top: 18px; left: 18px; padding: 2px 8px; font-size: 8px; }
  .zoom { bottom: 18px; right: 18px; width: 26px; height: 26px; font-size: 13px; opacity: 1; transform: none; }
  .gallery-bottom { font-size: 9px; gap: 10px; }
  .gallery-count { font-size: 8px; }
  .contact-section { margin-top: 82px; }
  .contact-panel { grid-template-columns: 1fr; padding: 30px 25px; gap: 28px; border-radius: 24px; }
  .contact-intro p { font-size: 12px; margin-top: 15px; }
  .portal-art { width: 110px; margin-top: 20px; }
  .contactlinks a { padding: 13px 16px; font-size: 12px; }
  .anonymous-message { display: grid; grid-template-columns: auto 1fr; padding: 25px; gap: 17px; border-radius: 24px; margin-top: 14px; }
  .message-icon { width: 44px; height: 44px; border-radius: 14px; }
  .message-icon svg { width: 23px; height: 23px; }
  .anonymous-copy h3 { font-size: 20px; }
  .anonymous-copy p { font-size: 11px; }
  .anonymous-message .button { grid-column: 1 / -1; width: 100%; margin-left: 0; margin-top: 4px; justify-content: space-between; padding-inline: 18px; }
  footer { margin-top: 64px; padding-block: 28px 22px; }
  .footer-inner { flex-wrap: wrap; gap: 17px; }
  .footer-brand { font-size: 22px; }
  .footer-year { font-size: 8px; }
  .back-top { font-size: 10px; }
  .back-top span { margin-left: 6px; }
  .footer-credits { font-size: 8px; margin-top: 23px; }
  .lightbox { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; border-radius: 20px; }
  .lightbox-image { max-height: 68dvh; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  nav a { padding-inline: 17px; }
  .filters button { padding-inline: 7px; font-size: 9px; }
  .profile-tags span { padding-inline: 4px; }
  .profile-preview, .hello-card { padding-inline: 13px; }
  .game-link { flex-direction: column; align-items: start; gap: 8px; }
  .anonymous-message { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Click-triggered motion remains available when ambient motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  .gallery-content { transition: grid-template-rows .68s cubic-bezier(.4, 0, .2, 1), opacity .45s ease !important; }
  .gallery-inner { transition: transform .68s var(--ease) !important; }
  .gallery-disclosure > summary::before { transition: opacity .35s var(--ease) !important; }
  .gallery-chevron { transition: transform .5s var(--ease) !important; }
  nav a { transition: color .25s, background .25s, transform .25s var(--ease) !important; }
}
