:root {
  color-scheme: dark;
  --background: #090a0d;
  --surface: #111318;
  --surface-raised: #15171d;
  --text: #f3f2ef;
  --muted: #9699a4;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c8d3ff;
  --accent-strong: #91a6ff;
  --content-width: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 82% 13%, rgba(52, 68, 128, 0.14), transparent 34rem),
    var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.section-wrap, .topbar {
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -1.2px;
}

.wordmark span, .period { color: var(--accent-strong); }

.navigation {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #b7b8c0;
  font-size: 13px;
}

.navigation a, .text-link, .topbar-github, .footer a {
  transition: color 160ms ease;
}

.navigation a:hover, .text-link:hover, .topbar-github:hover, .footer a:hover { color: var(--text); }

.topbar-github {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7d8df;
  font-size: 12px;
}

.topbar-github span, .text-link span, .footer a span { color: var(--accent-strong); }

.hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 325px;
  align-items: center;
  gap: 50px;
  position: relative;
  padding-block: 72px 92px;
}

.hero-copy { padding-top: 4px; }

.eyebrow {
  margin: 0 0 19px;
  color: #a7aec9;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8bd1a9;
  box-shadow: 0 0 12px rgba(139, 209, 169, 0.4);
  vertical-align: 1px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 1.06;
}

.intro {
  max-width: 420px;
  margin: 19px 0 27px;
  color: #a5a7b0;
  font-size: 17px;
}

.hero-actions { display: flex; align-items: center; gap: 23px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: #eef0ff; color: #151723; }
.button-primary:hover { background: #dbe1ff; }
.button-primary span { font-size: 15px; }

.text-link {
  color: #c8c9d0;
  font-size: 12px;
  font-weight: 560;
}

.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  color: #7f828e;
  font-size: 11px;
}

.hero-meta .status-dot { width: 6px; height: 6px; margin-right: 5px; }
.meta-separator { color: #464953; }

.profile-card {
  min-height: 294px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(33, 37, 51, 0.92), rgba(17, 19, 25, 0.96) 62%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.profile-card-glow {
  width: 190px;
  height: 190px;
  position: absolute;
  top: -88px;
  right: -40px;
  border-radius: 50%;
  background: rgba(130, 151, 255, 0.18);
  filter: blur(40px);
}

.avatar, .avatar-placeholder {
  width: 66px;
  height: 66px;
  position: absolute;
  top: 26px;
  left: 27px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  object-fit: cover;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #343a56, #161925);
  color: #e4e8ff;
  font-size: 24px;
  font-weight: 650;
}

.profile-card-label {
  margin-bottom: 4px;
  color: #8d91a0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.profile-card > strong { font-size: 20px; font-weight: 590; letter-spacing: -0.04em; }
.profile-card-stats { margin-top: 2px; color: #9295a0; font-size: 11px; }
.profile-card-link { margin-top: 19px; color: #dce1ff; font-size: 11px; }
.profile-card-link span { color: var(--accent-strong); }

.gaming-section { padding-block: 34px 67px; }
.gaming-section .section-heading { align-items: end; }
.gaming-updated { color: #777b87; font-size: 10px; }
.gaming-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 13px; scrollbar-width: thin; }
.gaming-tab {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 19, 24, 0.8);
  color: #a4a6b0;
  cursor: pointer;
  font-size: 11px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.gaming-tab:hover { transform: translateY(-2px); color: var(--text); }
.gaming-tab[aria-selected="true"] { border-color: rgba(173, 187, 255, 0.45); background: rgba(145, 166, 255, 0.13); color: #e5e9ff; }
.gaming-panel {
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(23, 25, 33, 0.96), rgba(15, 16, 21, 0.94));
}
.gaming-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.gaming-panel-heading h3 { margin: 0; font-size: 19px; font-weight: 590; letter-spacing: -0.04em; }
.gaming-account { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.gaming-result { padding-top: 16px; }
.gaming-message { margin: 0; color: #a3a5af; font-size: 12px; }
.gaming-message-error { color: #ffb2a7; }
.gaming-summary { display: flex; align-items: baseline; gap: 12px; color: #8d91a0; font-size: 10px; }
.gaming-summary strong { color: var(--text); font-size: 15px; }
.game-feature {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(200, 211, 255, 0.13);
  border-radius: 11px;
  background: linear-gradient(100deg, rgba(145, 166, 255, 0.1), rgba(255, 255, 255, 0.015));
}
.game-feature img { width: 165px; min-height: 94px; align-self: stretch; background: #191c26; object-fit: cover; }
.game-feature > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 0; }
.game-feature .stat-label { font-size: 8px; }
.game-feature strong { font-size: 15px; }
.game-feature > div > span:last-child { color: var(--muted); font-size: 10px; }
.game-list-heading { margin: 20px 0 10px; font-size: 13px; font-weight: 570; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.top-games-heading { margin-top: 21px; }
.top-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(173, 187, 255, 0.3); }
.game-image { width: 100%; aspect-ratio: 460 / 215; display: block; background: linear-gradient(130deg, #24283a, #11131a); object-fit: cover; }
.game-card-content { min-width: 0; padding: 9px 10px 11px; }
.game-card-content h4 { margin: 0; overflow: hidden; font-size: 11px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.game-card-content p { margin: 4px 0 0; color: #888b96; font-size: 9px; }
.game-card-link { display: none; }
.gaming-note { margin: 12px 0 0; color: #81848e; font-size: 10px; }

.stats-strip { padding-bottom: 65px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(23, 25, 33, 0.95), rgba(15, 16, 21, 0.85));
}
.stat-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  transition: background 220ms ease, transform 220ms ease;
}
.stat-card:last-child { border-right: 0; }
.stat-card:hover { transform: translateY(-3px); background: rgba(145, 166, 255, 0.07); }
.stat-label { color: #9298b2; font-size: 9px; font-weight: 650; letter-spacing: 0.14em; }
.stat-value { margin-top: 5px; font-size: 27px; font-weight: 620; letter-spacing: -0.06em; line-height: 1.1; }
.stat-caption { margin-top: 4px; color: #777b87; font-size: 10px; }

.hero-index {
  position: absolute;
  right: 0;
  bottom: 28px;
  color: #5f626d;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.content-section { padding-block: 37px 91px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .activity-intro h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 43px);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 1.15;
}

.heading-link { margin-bottom: 7px; }
.section-caption { margin: 10px 0 22px; color: var(--muted); font-size: 12px; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.project-card, .repo-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(24, 26, 33, 0.94), rgba(16, 17, 22, 0.94));
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover, .repo-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(173, 187, 255, 0.28);
  background: linear-gradient(140deg, rgba(30, 33, 43, 0.98), rgba(17, 19, 25, 0.98));
}

.featured-card { min-height: 252px; overflow: hidden; padding: 0 19px 15px; }
.featured-card .project-card-top { padding-top: 14px; }
.project-image {
  width: calc(100% + 38px);
  height: 118px;
  display: block;
  margin: 0 -19px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #1d2232, #11131a, #252b40);
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2, .75, .25, 1), filter 450ms ease;
}
.project-card:hover .project-image { transform: scale(1.045); filter: saturate(1.2); }
.repo-card .project-image { width: calc(100% + 30px); height: 82px; margin: -15px -15px 11px; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; }

.project-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c2caff;
  font-size: 14px;
}

.star-count { color: #9b9eaa; font-size: 10px; }
.star-count span { color: #e6d4a0; }
.project-card h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 590; letter-spacing: -0.02em; }
.project-card h3 a:hover { color: #d0d8ff; }

.project-description {
  min-height: 37px;
  margin: 0;
  overflow: hidden;
  color: #9699a4;
  font-size: 11px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.language-label { display: inline-flex; align-items: center; gap: 6px; color: #aeb0b9; font-size: 10px; }
.language-dot { width: 7px; height: 7px; border-radius: 50%; }
.updated-label { color: #737681; font-size: 9px; }
.inline-message { color: #9699a4; font-size: 12px; }

.project-card-loading { min-height: 192px; padding: 25px 20px; }
.loading-line {
  display: block;
  width: 65%;
  height: 10px;
  margin-top: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #20232c, #2a2d37, #20232c);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.loading-line-short { width: 42%; margin-top: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.repository-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 49px;
}

.repository-heading h3 { margin: 0; font-size: 19px; font-weight: 560; letter-spacing: -0.04em; }
.repository-heading .section-caption { margin: 3px 0 0; }

.search-box {
  width: min(250px, 100%);
  height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 24, 0.8);
  color: #777b87;
}

.search-box svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.search-box input::placeholder { color: #777b87; }
.search-box:focus-within { border-color: rgba(173, 187, 255, 0.44); }

.repository-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.repo-card { min-height: 152px; padding: 15px; }
.repo-card .project-card-top { margin-bottom: 11px; }
.repo-card .project-icon { width: 23px; height: 23px; font-size: 12px; }
.repo-card h3 { margin: 0 0 5px; font-size: 12px; }
.repo-card .project-description { min-height: 34px; font-size: 10px; }
.repo-card .project-card-footer { margin-top: 10px; }

.activity-section {
  border-block: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(24, 27, 38, 0.58), rgba(12, 13, 17, 0.2) 70%);
}

.activity-layout {
  min-height: 310px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 70px;
  padding-block: 49px;
}

.activity-intro .eyebrow { margin-bottom: 10px; }
.activity-intro h2 { font-size: 38px; }
.activity-intro > p:not(.eyebrow) { max-width: 255px; margin: 12px 0 18px; color: var(--muted); font-size: 12px; }
.commit-list { border-top: 1px solid var(--line); }

.commit-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.commit-marker { width: 6px; height: 6px; border-radius: 50%; background: #98a9ff; box-shadow: 0 0 12px rgba(152, 169, 255, 0.48); }
.commit-details { min-width: 0; }
.commit-title { margin: 0 0 2px; overflow: hidden; color: #d8d9df; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.commit-meta { overflow: hidden; color: #777b87; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.commit-open { color: #858b9f; text-align: center; }
.commit-open:hover { color: #dce1ff; }
.activity-loading, .activity-empty { color: #898c97; font-size: 12px; }
.activity-empty { padding-block: 14px; }

.links-section { padding-block: 78px 80px; }
.links-section .section-heading { margin-bottom: 22px; }
.connection-carousel { width: min(100%, 520px); margin: 0 auto; padding: 32px 18px 4px; }
.connection-card {
  min-height: 318px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px;
  border: 1px solid rgba(200, 211, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 28, 38, 0.98), rgba(15, 16, 21, 0.98));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.32);
  animation: connection-enter 260ms ease both;
}

.connection-card::before, .connection-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(200, 211, 255, 0.13);
  border-radius: inherit;
  background: #11131a;
  content: "";
}

.connection-card::before { transform: translate(-12px, -10px) rotate(-5deg); }
.connection-card::after { transform: translate(12px, -10px) rotate(5deg); }
.connection-card-heading { display: flex; align-items: center; gap: 14px; }
.connection-mark { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(200, 211, 255, 0.2); border-radius: 14px; background: rgba(145, 166, 255, 0.1); color: var(--accent); font-size: 20px; font-weight: 700; }
.connection-image { width: 100%; height: 100%; object-fit: cover; }
.connection-card .eyebrow { margin: 0 0 3px; font-size: 9px; }
.connection-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.5px; }
.connection-username { margin: 15px 0 0; color: var(--accent); font-size: 13px; }
.connection-description { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.connection-details { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.connection-details > div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); }
.connection-details dt { color: #858894; font-size: 9px; }
.connection-details dd { margin: 2px 0 0; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.connection-status { min-height: 17px; margin: auto 0 0; padding-top: 14px; color: #858894; font-size: 10px; }
.connection-status-error { color: #ffb2a7; }
.connection-link { margin-top: 13px; padding: 9px 13px; font-size: 11px; }
.connection-controls { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 25px; }
.connection-arrow { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.connection-arrow:hover { border-color: rgba(173, 187, 255, 0.3); background: #191b23; }
.connection-pagination { display: flex; align-items: center; gap: 8px; }
.connection-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #454854; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.connection-dot[aria-pressed="true"] { transform: scale(1.35); background: var(--accent-strong); }

@keyframes connection-enter {
  from { transform: translateY(6px) rotate(-1deg); opacity: 0.65; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: #777a84;
  font-size: 10px;
}

.footer-mark { color: var(--text); font-size: 15px; }
.footer a { color: #a1a3ad; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.privacy-page { min-height: calc(100vh - 150px); padding-block: 74px; }
.privacy-page h1 { margin: 0 0 20px; font-size: clamp(42px, 7vw, 66px); font-weight: 620; letter-spacing: -0.07em; }
.privacy-page h2 { margin: 35px 0 7px; font-size: 19px; font-weight: 580; letter-spacing: -0.03em; }
.privacy-page p:not(.eyebrow) { max-width: 720px; color: #a5a7b0; font-size: 13px; }

.toast {
  position: fixed;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  padding: 10px 15px;
  transform: translateY(10px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #20232b;
  color: #eff0f4;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast-visible { transform: translateY(0); opacity: 1; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.hero-copy, .profile-card, .stats-grid, .section-heading, .project-card, .repo-card, .activity-intro, .commit-row, .connection-card, .gaming-panel, .game-card, .game-feature {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms);
}
.hero-copy.is-visible, .profile-card.is-visible, .stats-grid.is-visible, .section-heading.is-visible, .project-card.is-visible, .repo-card.is-visible, .activity-intro.is-visible, .commit-row.is-visible, .connection-card.is-visible, .gaming-panel.is-visible, .game-card.is-visible, .game-feature.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card.is-visible:hover, .repo-card.is-visible:hover { transform: translateY(-6px) scale(1.015); }
.hero-copy.is-visible { animation: hero-glow 900ms ease both; }
@keyframes hero-glow {
  0% { filter: blur(2px); }
  100% { filter: blur(0); }
}

@media (max-width: 760px) {
  .section-wrap, .topbar { width: min(100% - 40px, var(--content-width)); }
  .hero { min-height: unset; grid-template-columns: 1fr 250px; gap: 25px; padding-block: 67px 75px; }
  .profile-card { min-height: 265px; padding: 21px; }
  .avatar, .avatar-placeholder { left: 20px; }
  .stat-card { padding-inline: 15px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid, .repository-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid .project-card:last-child { display: none; }
  .activity-layout { gap: 35px; grid-template-columns: 0.7fr 1.3fr; }
  .connection-card { min-height: 300px; padding: 22px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 68px; }
  .section-wrap, .topbar { width: calc(100% - 36px); }
  .topbar { height: 62px; }
  .navigation { gap: 16px; font-size: 11px; }
  .navigation a:nth-child(3) { display: none; }
  .topbar-github { padding: 6px 10px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 58px 60px; }
  .hero h1 { font-size: clamp(46px, 12vw, 62px); }
  .intro { font-size: 15px; }
  .profile-card { min-height: 205px; }
  .gaming-section { padding-block: 25px 48px; }
  .gaming-panel { padding: 15px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-feature img { width: 120px; }
  .game-feature > div { padding-right: 9px; }
  .stats-strip { padding-bottom: 48px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 100px; border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(n + 3) { border-bottom: 0; }
  .hero-index { bottom: 19px; }
  .content-section { padding-block: 24px 65px; }
  .section-heading { align-items: start; }
  .heading-link { max-width: 110px; margin-top: 31px; font-size: 10px; text-align: right; }
  .section-heading h2 { font-size: 32px; }
  .featured-grid, .repository-grid { grid-template-columns: 1fr; }
  .featured-grid .project-card:last-child { display: block; }
  .featured-card { min-height: 177px; }
  .repository-heading { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 38px; }
  .search-box { width: 100%; }
  .repo-card { min-height: 142px; }
  .activity-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 43px; }
  .activity-intro h2 br { display: none; }
  .activity-intro h2 { font-size: 32px; }
  .links-section { padding-block: 57px 58px; }
  .connection-carousel { padding-inline: 14px; }
  .connection-card { min-height: 315px; padding: 19px; }
  .connection-card::before { transform: translate(-7px, -8px) rotate(-4deg); }
  .connection-card::after { transform: translate(7px, -8px) rotate(4deg); }
  .connection-details { gap: 6px; }
  .connection-details > div { padding: 8px 7px; }
  .connection-details dd { font-size: 10px; }
  .footer { min-height: 68px; flex-wrap: wrap; padding-block: 14px; }
  .footer > span { display: none; }
  .footer-links { gap: 12px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-copy, .profile-card, .stats-grid, .section-heading, .project-card, .repo-card, .activity-intro, .commit-row, .connection-card, .gaming-panel, .game-card, .game-feature {
    opacity: 1;
    transform: none;
  }
}
