:root {
  --brand: #35bfab;
  --brand-deep: #149b89;
  --ink: #334f52;
  --muted: #718487;
  --paper: #edf4f2;
  --white: #fff;
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.82);
  --line: rgba(255,255,255,.88);
  --shadow: 0 30px 70px -36px rgba(45,77,77,.28), inset 0 0 18px rgba(255,255,255,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink);
  background: var(--paper); font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image: radial-gradient(rgba(51,79,82,.07) .7px, transparent .7px);
  background-size: 18px 18px; mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient { position: fixed; inset: 0; z-index: -2; overflow: clip; contain: strict; pointer-events: none; filter: blur(55px); }
.ambient i { position: absolute; display: block; border-radius: 50%; opacity: .56; animation: drift 18s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { width: 42vw; height: 42vw; top: -18vw; right: -8vw; background: #a9eadc; }
.ambient i:nth-child(2) { width: 34vw; height: 34vw; bottom: -15vw; left: -10vw; background: #c7dff1; animation-delay: -6s; }
.ambient i:nth-child(3) { width: 22vw; height: 22vw; top: 42%; left: 38%; background: #fff4bc; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(5vw, 3vw, 0) scale(1.12); } }

.site-header {
  position: sticky; top: 16px; z-index: 20; width: min(1180px, calc(100% - 32px)); height: 68px;
  margin: 16px auto 0; padding: 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.65);
  box-shadow: 0 10px 32px rgba(52,88,85,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; width: max-content; font-size: 17px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: block; flex: 0 0 34px; border-radius: 11px; overflow: hidden; background: var(--brand); box-shadow: 0 7px 14px rgba(53,191,171,.3); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
nav { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(230,241,238,.68); }
nav a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: .2s ease; }
nav a:hover, nav a.active { color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 4px 12px rgba(51,79,82,.06); }
.header-github { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.github-icon { width: 17px; height: 17px; display: block; }
.header-github span:last-child { color: var(--brand-deep); }

main, footer { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.home-hero { min-height: 680px; padding: 86px 30px 72px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.eyebrow, .section-index { margin: 0; color: var(--brand-deep); font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 2px; border-radius: 2px; background: var(--brand); }
h1 { margin: 22px 0 28px; font-size: clamp(62px, 7.5vw, 106px); line-height: .96; letter-spacing: -.065em; font-weight: 600; }
h1 em { color: var(--brand-deep); font-style: normal; }
.hero-intro { margin: 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.hero-note { max-width: 540px; margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { padding: 13px 20px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(51,79,82,.1); border-radius: 14px; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(51,79,82,.12); }
.button.primary { color: #fff; background: var(--ink); }
.button.secondary { background: rgba(255,255,255,.64); backdrop-filter: blur(10px); }

.profile-scene { position: relative; min-height: 490px; display: grid; place-items: center; }
.profile-halo { position: absolute; width: 410px; height: 410px; border-radius: 50%; background: linear-gradient(135deg, rgba(53,191,171,.4), rgba(255,255,255,.1) 48%, rgba(166,210,236,.45)); filter: blur(2px); }
.profile-halo::before, .profile-halo::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.profile-halo::before { inset: -26px; }
.profile-halo::after { inset: 35px -48px; transform: rotate(28deg); }
.glass-card { border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.profile-card { position: relative; z-index: 2; width: min(340px, 72vw); margin: 0; padding: 16px; border-radius: 34px; transform: rotate(2deg); }
.profile-image-wrap { aspect-ratio: 1; padding: 8px; display: grid; place-items: center; border-radius: 26px; background: rgba(255,255,255,.6); overflow: hidden; }
.profile-card img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; border-radius: 21px; }
.profile-card figcaption { padding: 16px 8px 3px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.profile-card figcaption small { color: var(--muted); font-weight: 400; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #28c87d; box-shadow: 0 0 0 4px rgba(40,200,125,.13); }
.float-label { position: absolute; z-index: 3; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); box-shadow: 0 10px 30px rgba(51,79,82,.12); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); }
.label-one { top: 56px; right: -4px; transform: rotate(4deg); }
.label-two { bottom: 58px; left: 16px; color: #fff; background: var(--brand); transform: rotate(-6deg); }
.float-spark { position: absolute; top: 85px; left: 38px; color: #e9b83f; font-size: 34px; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: rotate(20deg) scale(1.18); } }

.home-cards { padding: 0 0 110px; display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; }
.portal-card, .quote-card { min-height: 240px; padding: 28px; border-radius: 28px; }
.portal-card { display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s, box-shadow .25s; }
.portal-card:hover { transform: translateY(-7px); box-shadow: 0 34px 70px -30px rgba(35,94,88,.3); }
.portal-index { align-self: flex-end; color: var(--brand-deep); font-size: 12px; font-weight: 700; }
.portal-card p { margin: 0 0 7px; color: var(--brand-deep); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.portal-card h2 { margin: 0 0 14px; font-size: 35px; letter-spacing: -.04em; }
.portal-card div > span { color: var(--muted); font-size: 13px; }
.portal-projects { background: rgba(208,238,233,.65); }
.quote-card { color: #fff; background: var(--ink); }
.quote-card > span { color: var(--brand); font: 60px Georgia, serif; line-height: .8; }
.quote-card p { margin: 10px 0 32px; font-size: 21px; line-height: 1.55; }
.quote-card small { color: #b8c9ca; font-size: 9px; letter-spacing: .13em; }

.inner-page { min-height: calc(100vh - 184px); }
.page-intro { padding: 108px 30px 74px; border-bottom: 1px solid rgba(51,79,82,.1); }
.page-intro h1 { margin-bottom: 20px; }
.page-intro > p:last-child { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.section { padding: 105px 30px; border-bottom: 1px solid rgba(51,79,82,.1); }
.section-heading { display: grid; grid-template-columns: .75fr 1.25fr; gap: 45px; }
.section-index { margin-top: 10px; }
h2 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.about-content { grid-column: 2; max-width: 720px; margin-top: 52px; }
.about-content p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.about-content .lead { color: var(--ink); font-size: 26px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.facts div { padding: 20px; display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.facts strong { color: var(--brand-deep); font-size: 10px; letter-spacing: .12em; }
.facts span { font-size: 14px; }
.section-heading.compact { display: block; margin-bottom: 46px; }
.section-heading.compact .section-index { margin-bottom: 16px; }
.section-heading.compact h2 { font-size: clamp(44px, 5.5vw, 68px); }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-card { min-height: 355px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(15px); transition: transform .25s; }
.stack-card:hover { transform: translateY(-6px); }
.stack-card::before { content: ""; width: 42px; height: 7px; border-radius: 7px; background: #79bfe9; }
.stack-card.accent-green::before { background: var(--brand); }
.stack-card.accent-orange::before { background: #f3c564; }
.card-number { align-self: flex-end; color: var(--muted); font-size: 11px; }
.stack-card h3, .life-card h3 { margin: 35px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.stack-card p { color: var(--muted); line-height: 1.65; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.chips span { padding: 6px 9px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.72); font-size: 11px; }
.life-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 16px; }
.life-card { min-height: 270px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; }
.life-card > span { font-size: 38px; }
.life-card h3 { margin-top: auto; }
.life-card p { margin: 0; color: rgba(51,79,82,.72); line-height: 1.7; }
.life-card.music { background: rgba(179,232,219,.78); }
.life-card.travel { background: rgba(196,222,239,.8); }
.life-card.sport { background: rgba(249,221,164,.8); }

.profile-page { min-height: calc(100vh - 184px); padding: 84px 30px 110px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 58px; align-items: start; }
.profile-sidebar { position: fixed; top: 168px; left: max(46px, calc((100vw - 1180px) / 2 + 30px)); z-index: 10; width: 300px; height: max-content; max-height: calc(100vh - 190px); padding: 28px; border-radius: 30px; text-align: center; }
.profile-avatar { width: 164px; height: 164px; display: block; margin: 0 auto 22px; border-radius: 50%; object-fit: cover; border: 8px solid rgba(255,255,255,.72); box-shadow: 0 18px 38px rgba(51,79,82,.16); }
.profile-kicker { margin: 0 0 6px; color: var(--brand-deep); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.profile-sidebar h1 { margin: 0 0 12px; font-size: 44px; line-height: .98; letter-spacing: -.055em; }
.profile-role { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.profile-school { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.profile-school:hover, .profile-document a:hover { color: var(--brand-deep); }
.profile-links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.profile-links a, .profile-links span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 12px; font-weight: 600; }
.profile-document { grid-column: 2; padding: 8px 0 0; }
.cv-section { padding: 0 0 54px; margin-bottom: 54px; border-bottom: 1px solid rgba(51,79,82,.12); }
.cv-section:last-child { margin-bottom: 0; }
.cv-section h2 { margin: 12px 0 24px; font-size: clamp(34px, 4.6vw, 56px); }
.cv-section p { color: var(--muted); font-size: 16px; line-height: 1.86; }
.cv-section strong { color: var(--ink); }
.cv-section a { color: var(--brand-deep); font-weight: 600; }
.highlight, .wechat-id { color: var(--brand-deep); font-weight: 700; }
.cv-contact-pill { margin: 0 3px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; color: #fff !important; font-size: .96em; font-weight: 700; line-height: 1; vertical-align: middle; box-shadow: 0 8px 18px rgba(51,79,82,.12); white-space: nowrap; }
.cv-contact-pill svg { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.email-pill { background: #2f81f7; }
.wechat-pill { background: #17bf63; }
.profile-document a.cv-contact-pill:hover { color: #fff; transform: translateY(-1px); }
.interest-list, .news-list { margin: 0; padding: 0; list-style: none; }
.interest-list { display: grid; gap: 12px; }
.interest-list li { padding: 18px 20px; display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: baseline; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.5); }
.interest-list strong { color: var(--ink); }
.interest-list span { color: var(--muted); line-height: 1.65; }
.news-list { display: grid; gap: 10px; }
.news-list li a { padding: 15px 18px; display: block; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); color: var(--ink); }
.news-list li a:hover { color: var(--brand-deep); transform: translateX(4px); }
.cv-stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cv-stack-grid > div { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass); box-shadow: var(--shadow); }
.cv-stack-grid h3 { margin: 0 0 16px; color: var(--brand-deep); font-size: 18px; }
.cv-stack-grid p { margin: 0; font-size: 14px; line-height: 1.75; }
.skill-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.skill-icons a { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 10px 22px rgba(51,79,82,.08); transition: transform .2s ease, box-shadow .2s ease; }
.skill-icons a:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(51,79,82,.15); }
.skill-icons img { max-width: 34px; max-height: 34px; display: block; object-fit: contain; }
.skill-icons.compact a { width: 52px; height: 52px; }
.skill-icons.compact img { max-width: 36px; max-height: 36px; }
.skill-chip { padding: 9px 11px; border-radius: 999px; color: var(--brand-deep); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }

.projects-section { padding: 76px 30px 120px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.project-card { min-height: 255px; padding: 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(16px); transition: transform .22s, box-shadow .22s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 30px 65px -30px rgba(35,94,88,.28); }
.project-card.is-pinned { background: rgba(211,241,235,.76); }
.project-card-top, .project-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 11px; }
.project-visibility { color: var(--brand-deep); font-weight: 700; letter-spacing: .12em; }
.project-card h2 { margin: 32px 0 11px; font-size: 27px; letter-spacing: -.035em; }
.project-card h2 a:hover { color: var(--brand-deep); }
.project-card > p { margin: 0; color: var(--muted); line-height: 1.7; }
.project-meta { margin-top: auto; padding-top: 28px; }
.project-meta span:first-child { padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.72); }
.project-state { grid-column: 1/-1; color: var(--muted); }
.project-state a { text-decoration: underline; }

.game-page { min-height: calc(100vh - 184px); padding: 72px 30px 110px; }
.game-shell { padding: 28px; border-radius: 30px; overflow: hidden; }
.game-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.game-intro h1 { margin: 12px 0 0; font-size: clamp(42px, 6vw, 78px); line-height: .96; letter-spacing: -.055em; }
.game-logo-card { width: 148px; margin: 0; padding: 10px; display: grid; justify-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.68); box-shadow: 0 18px 36px rgba(51,79,82,.1); }
.game-logo-card img { width: 88px; height: 88px; display: block; object-fit: cover; border-radius: 50%; image-rendering: pixelated; }
.game-logo-card figcaption { color: var(--brand-deep); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-stage { position: relative; border: 1px solid rgba(51,79,82,.16); border-radius: 20px; background: linear-gradient(#fbfffb 0 62%, #eef7f4 62% 100%); overflow: hidden; box-shadow: inset 0 -18px 0 rgba(51,79,82,.03); }
.game-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(51,79,82,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(51,79,82,.045) 1px, transparent 1px); background-size: 16px 16px; opacity: .42; }
#antique-game { position: relative; z-index: 1; width: 100%; aspect-ratio: 8 / 3; display: block; image-rendering: pixelated; touch-action: manipulation; cursor: pointer; }
.game-panel { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(110px, 150px)) 1fr; gap: 12px; align-items: stretch; }
.game-stat { padding: 13px 15px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.game-stat span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.game-stat strong { color: var(--ink); font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.game-actions { display: flex; justify-content: flex-end; gap: 10px; }
.game-button { min-width: 94px; padding: 0 18px; border: 1px solid rgba(51,79,82,.12); border-radius: 14px; color: #fff; background: var(--ink); font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.game-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(51,79,82,.14); }
.game-button.muted { color: var(--ink); background: rgba(255,255,255,.72); }

.music-player { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 10px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.78); box-shadow: 0 16px 44px rgba(44,75,74,.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.music-toggle { width: 46px; height: 46px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.music-record { position: relative; width: 40px; height: 40px; display: block; border-radius: 50%; background: repeating-radial-gradient(circle, #263f42 0 2px, #39575a 3px 4px, #263f42 5px 7px); box-shadow: 0 7px 16px rgba(38,63,66,.24); animation: record-spin 3s linear infinite; animation-play-state: paused; }
.music-record::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 2px rgba(255,255,255,.24); }
.music-record::after { content: ""; position: absolute; width: 5px; height: 5px; inset: 0; margin: auto; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(38,63,66,.18); }
.music-player.is-playing .music-record { animation-play-state: running; }
.music-toggle:hover .music-record { box-shadow: 0 8px 20px rgba(20,155,137,.34); }
@keyframes record-spin { to { transform: rotate(1turn); } }
.music-info { min-width: 0; }
.music-info strong, .music-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-info strong { font-size: 13px; }
.music-info span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.music-time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.music-progress { position: absolute; left: 67px; right: 17px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(51,79,82,.1); overflow: hidden; }
.music-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); }

footer { min-height: 100px; padding: 25px 4px 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; }
.footer-contacts { display: flex; align-items: center; justify-content: center; gap: 9px; }
.contact-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: #fff; box-shadow: 0 8px 20px rgba(51,79,82,.12); transition: transform .2s ease, box-shadow .2s ease; }
.contact-link:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(51,79,82,.2); }
.contact-link svg { width: 18px; height: 18px; fill: currentColor; }
.contact-link.email { background: #4285f4; }
.contact-link.bilibili { background: #00aeec; }
.contact-link.xiaohongshu { background: #ff2442; }
.xhs-mark { color: #fff; font-size: 10px; font-weight: 800; letter-spacing: -.08em; line-height: 1; transform: translateY(-.5px); }
.contact-link.csdn { background: #fc5531; }
.footer-tagline { justify-self: end; text-align: right; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 75px; }
  .profile-scene { min-height: 470px; }
  .home-cards { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 1/-1; min-height: 210px; }
  .section-heading { grid-template-columns: 1fr; }
  .about-content { grid-column: 1; }
  .stack-grid, .life-grid { grid-template-columns: 1fr; }
  .stack-card { min-height: 310px; }
  .profile-page { grid-template-columns: 1fr; gap: 34px; }
  .profile-sidebar { position: static; }
  .profile-document { padding-top: 0; }
  .interest-list li { grid-template-columns: 1fr; gap: 7px; }
  .cv-stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ambient { filter: none; background: radial-gradient(circle at 90% 10%, rgba(169,234,220,.55), transparent 42%), radial-gradient(circle at 8% 70%, rgba(199,223,241,.45), transparent 40%); }
  .ambient i { display: none; }
  .site-header { top: 8px; width: calc(100% - 16px); height: auto; min-height: 64px; margin-top: 8px; padding: 9px 11px; grid-template-columns: auto 1fr; }
  .brand > span:last-child, .header-github { display: none; }
  nav { justify-self: end; gap: 2px; }
  nav a { padding: 8px 9px; font-size: 12px; }
  .home-hero { min-height: auto; padding: 72px 8px 58px; gap: 40px; }
  h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-intro br { display: none; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: space-between; }
  .profile-scene { min-height: 400px; }
  .profile-halo { width: 300px; height: 300px; }
  .profile-card { width: 260px; padding: 12px; border-radius: 27px; }
  .profile-image-wrap { padding: 6px; border-radius: 21px; }
  .profile-card img { border-radius: 17px; }
  .label-one { top: 28px; right: 0; }
  .label-two { bottom: 35px; left: 0; }
  .float-spark { left: 5px; }
  .home-cards, .project-grid { grid-template-columns: 1fr; }
  .home-cards { padding-bottom: 80px; }
  .quote-card { grid-column: auto; }
  .page-intro, .section, .projects-section { padding-left: 8px; padding-right: 8px; }
  .page-intro { padding-top: 75px; }
  .profile-page { padding: 58px 8px 88px; }
  .profile-sidebar { padding: 22px; border-radius: 24px; }
  .profile-avatar { width: 138px; height: 138px; }
  .profile-sidebar h1 { font-size: 38px; }
  .cv-section { padding-bottom: 42px; margin-bottom: 42px; }
  .facts { grid-template-columns: 1fr; }
  .project-card { min-height: 235px; }
  .game-page { padding: 58px 8px 88px; }
  .game-shell { padding: 16px; border-radius: 24px; }
  .game-intro { align-items: flex-start; }
  .game-logo-card { width: 116px; border-radius: 18px; }
  .game-logo-card img { width: 66px; height: 66px; border-radius: 50%; }
  .game-panel { grid-template-columns: 1fr 1fr; }
  .game-actions { grid-column: 1 / -1; justify-content: stretch; }
  .game-button { min-height: 48px; flex: 1; }
  .music-player { right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  footer { grid-template-columns: 1fr; justify-items: center; padding-left: 4px; padding-right: 4px; text-align: center; }
  .footer-tagline { justify-self: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
