:root {
  color-scheme: dark;
  --red: #f33446;
  --text: #e7e5e5;
  --muted: #858182;
  --line: rgba(255, 255, 255, .12);
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 32px 20px; overflow-x: hidden; background: #080808; color: var(--text); font-family: var(--mono); }
.backdrop { position: fixed; inset: 0; z-index: -3; background: linear-gradient(180deg, rgba(5, 5, 5, .55), rgba(5, 5, 5, .49) 48%, rgba(5, 5, 5, .61)), url("assets/night-skyline.png") center 56% / cover no-repeat; transform: scale(1.02); }
.grain { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); }
.profile-card { width: min(100%, 654px); padding: 25px 29px 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; background: rgba(8, 8, 8, .8); box-shadow: 0 20px 90px rgba(0, 0, 0, .32); backdrop-filter: blur(10px); }
.profile-header { padding: 0 0 26px; text-align: center; }
.avatar { display: block; width: 136px; height: 136px; margin: 0 auto 8px; border: 1.5px solid var(--red); border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
h1 { margin: 0; font: 700 36px/1.3 var(--sans); letter-spacing: .2px; }
h1 span { padding-left: 7px; color: var(--red); }
.handle { display: inline-block; margin-top: 1px; color: var(--muted); font-size: 14px; text-decoration: none; }
.role { margin: 7px 0 0; color: #c2bfc0; font-size: 16px; }
.intro { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 17px auto 0; }
.skill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; background: rgba(255, 255, 255, .025); color: #c5c1c2; font: 10px var(--mono); }
.skill-icon { display: grid; width: 16px; height: 16px; place-items: center; color: var(--red); font: 700 10px var(--sans); }
.skill-icon.unity { border: 1px solid #d7d3d4; border-radius: 50%; color: #e8e5e6; font-size: 9px; }
.skill-icon.lua { font-size: 12px; }
.skill-icon.cpp, .skill-icon.ts { font-size: 8px; }
.skill-icon.html { border: 1px solid var(--red); border-radius: 3px; font-size: 10px; }
.actions { display: flex; justify-content: center; gap: 16px; margin-top: 19px; }
.button { display: flex; align-items: center; gap: 10px; min-width: 182px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 12px; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); border-color: var(--red); }
.button svg { width: 17px; height: 17px; fill: currentColor; }
.button-secondary svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { min-width: 178px; justify-content: space-between; border-color: var(--red); background: rgba(243, 52, 70, .045); color: var(--red); }
.button-primary svg { width: 18px; height: 18px; }
.arrow { margin-left: auto; font-size: 17px; }
.section { border-top: 1px solid var(--line); padding: 14px 0 17px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; }
h2 { position: relative; margin: 0; padding-left: 11px; font-size: 13px; font-weight: 400; }
h2::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--red); content: ""; }
.year-picker { display: flex; gap: 10px; }
.year-picker button { padding: 2px 0; border: 0; background: transparent; color: #666; font: 12px var(--mono); cursor: pointer; }
.year-picker button.active { color: var(--red); }
.contribution-total { color: var(--muted); font-size: 10px; }
.contribution-wrap { position: relative; margin-top: 14px; padding: 0 0 0 30px; }
.month-labels { display: grid; grid-template-columns: repeat(12, 1fr); height: 18px; color: #646061; font-size: 10px; }
.month-labels span { white-space: nowrap; }
.day-labels { position: absolute; top: 18px; left: 0; display: flex; flex-direction: column; justify-content: space-around; width: 24px; height: 84px; color: #b5b1b1; font-size: 10px; }
.contribution-grid { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: 100%; height: 84px; }
.day-cell { min-width: 0; min-height: 0; border-radius: 1px; background: #1b1b1b; }
.level-0 { background: #1b1b1b; }
.level-1 { background: #432023; }
.level-2 { background: #74252d; }
.level-3 { background: #b52c39; }
.level-4 { background: var(--red); }
.grid-unavailable { height: 0; }
.legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; color: #aaa6a7; font-size: 10px; }
.legend span:first-child { margin-right: 2px; }
.legend span:last-child { margin-left: 3px; }
.legend i { width: 10px; height: 10px; border-radius: 1px; }
.projects { padding-bottom: 18px; }
.live-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; letter-spacing: .7px; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.repo-card { position: relative; display: flex; min-height: 100px; align-items: flex-start; gap: 17px; margin-top: 13px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.repo-card:hover { border-color: rgba(243, 52, 70, .65); background: rgba(243, 52, 70, .025); }
.repo-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .055); }
.repo-icon svg { width: 24px; height: 24px; fill: var(--red); }
.repo-info { display: flex; flex-direction: column; gap: 5px; padding-top: 1px; }
.repo-name { font: 500 15px var(--sans); }
.repo-description { color: #979293; font-size: 10px; line-height: 1.6; }
.language { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 10px; }
.language i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.stars { display: flex; align-items: center; gap: 7px; margin: 1px 9px 0 auto; color: #ccc; font-size: 16px; }
.stars span { font-size: 11px; }
.repo-arrow { position: absolute; right: 19px; bottom: 13px; color: #9b9798; font-size: 18px; }
.footer { margin: 0 -10px; padding: 21px 0 0; border-top: 1px solid var(--line); text-align: center; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 20px; }
.footer-links a { display: flex; align-items: center; gap: 9px; color: #bcb8b9; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.footer-links svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-links svg.github-icon { fill: currentColor; stroke: none; }
.footer-divider { height: 19px; border-left: 1px solid var(--line); }
.external { margin-left: -6px; font-size: 11px; }
.copyright { margin: 17px 0 0; color: #777273; font-size: 10px; letter-spacing: .4px; }
.separator { padding: 0 10px; color: #686465; }
.accent { color: var(--red); }

@media (min-height: 900px) {
  .profile-card { padding-top: 26px; }
  .profile-header { padding-bottom: 27px; }
}

@media (max-width: 700px) {
  body { place-items: start center; padding: 22px 14px; }
  .profile-card { padding: 21px 18px 19px; }
  .avatar { width: 116px; height: 116px; }
  h1 { font-size: 31px; }
  .role { font-size: 14px; }
  .intro { font-size: 11px; }
  .skills { gap: 5px; margin-top: 14px; }
  .skill { padding: 5px 7px; font-size: 9px; }
  .actions { gap: 9px; }
  .button { min-width: 0; gap: 7px; padding: 0 10px; font-size: 10px; }
  .button-primary { min-width: 0; }
  .button svg { width: 15px; height: 15px; }
  .contribution-grid { gap: 2px; height: 74px; }
  .day-labels { height: 74px; }
  .month-labels { font-size: 8px; }
  .repo-card { gap: 11px; padding: 12px; }
  .repo-description { font-size: 9px; }
  .footer { margin-right: -4px; margin-left: -4px; }
}

@media (max-width: 390px) {
  .profile-card { padding-right: 13px; padding-left: 13px; }
  .actions { gap: 7px; }
  .button { padding: 0 8px; }
  .contribution-wrap { padding-left: 25px; }
  .day-labels { width: 20px; }
  .repo-description { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
