:root {
  color-scheme: dark;
  --bg-dark: #0d1117;
  --bg-gradient-mid: #1a1f2e;
  --bg-gradient-end: #161b22;
  --card-bg: rgba(22, 27, 34, 0.6);
  --card-bg-solid: rgb(22, 27, 34);
  --badge-bg: #191f29;
  --overlay-bg: rgba(22, 27, 34, 1);
  --text-main: #c9d1d9;
  --text-secondary: #8b949e;
  --text-tertiary: #b5b8bb;
  --text-disabled: #586069;
  --text-white: #ffffff;
  --border-card: rgba(48, 54, 61, 0.5);
  --border-badge: rgba(48, 54, 61, 0.7);
  --error-red: #f87171;
  --heart-red: #ff4757;
}


* {
  cursor: url(res/cursor.png) 2 2, auto !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

*:focus {
  outline: none !important;
}

@font-face {
  font-family: 'Chillax';
  src: url('fonts/chillax.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Terminus';
  src: url('fonts/Terminus.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Minecraftia';
  src: url('fonts/Minecraftia-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body,
html {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

html {
  scrollbar-width: thin;
  background: linear-gradient(135deg, rgb(6, 6, 17), rgb(1, 1, 14));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100dvh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: transparent;
  color: var(--text-main);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

img {
  -webkit-user-drag: none;
}

input,
textarea {
  user-select: auto !important;
}

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 20px;
  margin-bottom: 20px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.stack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@keyframes entrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-grid > div,
.bottom-grid > div {
  opacity: 0;
  animation: entrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.main-grid > div:nth-child(1) {
  animation-delay: 0.1s;
}

.main-grid > div:nth-child(2) {
  animation-delay: 0.2s;
  position: relative;
  z-index: 10;
}

.bottom-grid > div:nth-child(1) {
  animation-delay: 0.3s;
}

.bottom-grid > div:nth-child(2) {
  animation-delay: 0.4s;
  position: relative;
  z-index: 1;
}

.profile-card {
  font-family: 'Chillax', monospace;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  height: 295px;
}

.section-card {
  font-family: 'Chillax', monospace;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.section-card:hover,
.profile-card:hover {border-color:rgba(139,148,158,.35)}

.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: -3px;
}

.section-title-container .card-title {
  margin-bottom: 0;
}

#profile-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  object-fit: cover;
  z-index: 0;
  opacity: 0.65;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 65%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
}

#profile-banner[src=""],
#profile-banner:not([src]) {
  display: none;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  z-index: 2;
}

.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.91);
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 1;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.status-indicator {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--card-bg-solid);
  border: 3px solid rgba(22, 27, 34, 0.9);
  box-sizing: content-box;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.username-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  z-index: 2;
  position: relative;
}

.display-name {
  position: relative;
  width: 100%;
  max-width: clamp(150px, calc(85vw - 738px), 350px);
  overflow: hidden;
  white-space: nowrap;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}

.display-name-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.display-name.scrolling {
  -webkit-mask-image: linear-gradient(to right, transparent, black 5px, black calc(100% - 5px), transparent);
  mask-image: linear-gradient(to right, transparent, black 5px, black calc(100% - 5px), transparent);
}

.display-name.scrolling .display-name-inner {
  animation: display-name-scroll 4s ease-in-out infinite alternate;
}

@keyframes display-name-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--scroll-distance));
  }
}

.username-line {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-width: 0;
  position: relative;
  padding-right: 10px;
  z-index: 2;
}

.username-flex {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.at-username {
  color: var(--text-secondary);
  font-size: 14px;
  word-break: break-all;
  line-height: 22px;
}

#guild-badge {
    display: inline-flex;
    align-items: center;
    font-family: Consolas, monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--badge-bg);
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid var(--border-badge);
    line-height: 1;
    gap: 1px;
    white-space: nowrap;
    box-sizing: border-box;
    left: calc(100% + 6px);
    top: 50%;
    position: static;
    transform: none;
}
 
#guild-badge-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}
 
#guild-badge-tag {
    font-weight: 600;
}
 
.username-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.devices {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  align-items: center;
  transform: translateY(0.5px);
}

.device-icon {
    opacity: 1;
    fill: var(--text-main);
}
 
.devices .device-icon {
    width: 18px;
    height: 18px;
}

.custom-status {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: -4px;
  min-height: 20px;
  word-break: break-word;
  line-height: 1.5;
  display: block !important;
  z-index: 2;
  position: relative;
}

.profile-meta-row {
  position: absolute;
  top: 160px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}

.meta-badge {
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--badge-bg);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-badge);
  display: flex;
  align-items: center;
  height: 26px;
  box-sizing: border-box;
  position: relative;
}

.clock-icon {
  stroke: var(--text-secondary);
  width: 16px;
  height: 16px;
  margin-right: 5.5px;
}

#time-diff-display {
  position: absolute;
  top: 192px;
  right: 14px;
  z-index: 3;
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0.8;
}

#profile-gif {
  position: absolute;
  top: 38px;
  right: -15px;
  width: 100px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
}

#about-me-card {
  font-family: 'Minecraftia', monospace;
  height: 375px;
  max-height: 375px;
  overflow: hidden;
}

.about-me-content {
  position: relative;
  z-index: 1;
  padding-right: 10px;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 148, 158, 0.4) rgba(48, 54, 61, 0.3);
  overflow-x: hidden;
}

.about-me-content::-webkit-scrollbar {
  width: 6px;
}

.about-me-content::-webkit-scrollbar-track {
  background: rgba(48, 54, 61, 0.3);
  border-radius: 3px;
}

.about-me-content::-webkit-scrollbar-thumb {
  background: rgba(139, 148, 158, 0.4);
  border-radius: 3px;
}

.about-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  position: relative;
}

.about-section:first-child {
  border-bottom: 2px solid var(--border-card);
}

.about-section:nth-child(2)::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--border-card);
  width: 100%;
  max-width: 370px;
}

.about-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-section p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.about-me-image {
  position: absolute;
  bottom: 0px;
  right: 16px;
  width: 227px;
  height: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-2px);
}

.social-links a img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

#cypher-text {
  display: inline-block;
  font-family: monospace;
  text-align: center;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
}

.love-text {
    color: var(--heart-red);
    text-shadow: 0 0 5px rgba(199, 16, 31, 0.5);
    font-weight: 500;
    position: relative;
    display: inline-block;
    cursor: default;
}
 
.love-text::before,
.love-text::after {
    content: '<3';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--heart-red);
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}
 
.love-text::before {
    animation: float-heart-1 2s infinite linear;
}
 
.love-text::after {
    font-size: 14px;
    animation: float-heart-2 2s infinite linear;
    animation-delay: 1s;
}

@keyframes float-heart-1 {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
 
    20% {
        opacity: 1;
    }
 
    100% {
        transform: translate(-80%, -250%) scale(1.2) rotate(-15deg);
        opacity: 0;
    }
}
 
@keyframes float-heart-2 {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
 
    20% {
        opacity: 1;
    }
 
    100% {
        transform: translate(20%, -220%) scale(1) rotate(15deg);
        opacity: 0;
    }
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  gap: 6px;
  margin-top: 8px;
  max-width: 370px;
}

.lay-container {
  top: -154px;
  right: 11%;
  width: auto;
  z-index: 99;
  pointer-events: none;
}

#banner-img {
  width: 100%;
  height: auto;
  transition: opacity 1s ease 0.5s;
}

.mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  background: rgba(25, 31, 41, 0.6);
  border: 1px solid var(--border-badge);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  font-size: 12px;
}

.mini-btn:hover {
  color: var(--text-white);
  border-color: rgba(139, 148, 158, 0.35);
  background: rgba(25, 31, 41, 0.8);
}

.terminal {
  font-family: 'Terminus', monospace;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  min-height: 0;
  overflow: hidden;
  background: rgba(10, 12, 18, 0.6);
  display: flex;
  flex-direction: column;
  height: 280px;
}

.terminal:hover {border-color:rgba(139,148,158,.35)}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  background: rgba(25, 31, 41, 0.5);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.term-dot.red {
  background: #ff5f57;
}

.term-dot.yellow {
  background: #febc2e;
}

.term-dot.green {
  background: #28c840;
}

.term-title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

.terminal-body {
  flex: 1 1 0;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 148, 158, 0.4) rgba(48, 54, 61, 0.3);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  background: rgba(25, 31, 41, 0.35);
}

.terminal-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.terminal-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.term-muted {
  color: var(--text-secondary);
}

.term-good {
  color: #7ee787;
}

.term-bad {
  color: var(--error-red);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.project-card {
  background: rgba(48, 54, 61, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.project-card:hover {
  border-color: rgba(139, 148, 158, 0.35);
  background: rgba(48, 54, 61, 0.38);
  transform: translateY(-1px);
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-badge {
  font-family: Consolas, monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(25, 31, 41, 0.6);
  border: 1px solid var(--border-badge);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.project-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-secondary);
}

.project-link {
  color: var(--text-main);
  opacity: 0.9;
  text-decoration: none;
}

.project-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-list{display:flex;flex-direction:column;gap:10px}

.contact-item{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 12px;border-radius:12px;
  background:rgba(48,54,61,.25);
  border:1px solid var(--border-card);
  text-decoration:none;color:inherit;
  transition:background-color .2s,border-color .2s,transform .1s
}

.contact-item:hover{background:rgba(48,54,61,.35);border-color:rgba(139,148,158,.35)}

.contact-item:active{transform:scale(.995)}

.contact-left{display:flex;align-items:center;gap:10px}

.contact-left img{width:18px;height:18px}

.contact-right{color:var(--text-secondary);font-size:13px}

.no-js-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.no-js-message {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
  color: #ffffff;
  padding: 20px;
  max-width: 600px;
  font-size: large;
}

@media (max-width: 1050px) {
  .lay-container {
    right: 5%;
  }
  #about-me-card {
    height: 400px;
    max-height: 400px;
  }
}

@media (max-width: 900px) {
  .lay-container {
    right: 1%;
  }
  
  #about-me-card {
    height: 400px;
    max-height: 400px;
  }

  .main-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.9fr);
  }

  .projects-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    align-items: flex-start;
  }

  .main-grid,
  .bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lay-container {
    display: none;
  }

  .main-grid {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .profile-card,
  .section-card {
    backdrop-filter: none !important;
    background: var(--card-bg-solid) !important;
  }
}

#terminal,
[data-terminal] {
  --term-bg: #0b0f14;
  --term-fg: #e6edf3;
  --term-muted: #9aa7b3;
  --term-good: #7ee787;
  --term-bad: #ff7b72;
  background: var(--term-bg);
  color: var(--term-fg);
}

#terminal-out { color: var(--term-fg); }
#terminal-in { color: var(--term-fg); background: transparent; outline: none; border: none; }
.term-muted { color: var(--term-muted); }
.term-good { color: var(--term-good); }
.term-bad { color: var(--term-bad); }
.term-link { color: inherit; text-decoration: underline; }

.term-theme-default {
  --term-bg: #0b0f14;
  --term-fg: #e6edf3;
  --term-muted: #9aa7b3;
  --term-good: #7ee787;
  --term-bad: #ff7b72;
}

.term-theme-matrix {
  --term-bg: #050a06;
  --term-fg: #7CFF8A;
  --term-muted: #4fd36a;
  --term-good: #b6ffbf;
  --term-bad: #ff6b6b;
}

.term-theme-amber {
  --term-bg: #0f0b06;
  --term-fg: #ffcc66;
  --term-muted: #caa24f;
  --term-good: #ffdca0;
  --term-bad: #ff6b6b;
}

.term-theme-ice {
  --term-bg: #061018;
  --term-fg: #bfe9ff;
  --term-muted: #7fb8d6;
  --term-good: #d2f3ff;
  --term-bad: #ff7b72;
}

.term-theme-mono {
  --term-bg: #0d0d0d;
  --term-fg: #f2f2f2;
  --term-muted: #b7b7b7;
  --term-good: #f2f2f2;
  --term-bad: #f2f2f2;
}

.terminal {
  height: 280px;
  max-height: 280px;
  min-height: 0;
}

.terminal-body#terminal-out {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.music-card{
  position:relative;
  overflow:hidden;
  height:295px;
  border-radius:12px;
  border:1px solid var(--border-card);
  background:var(--card-bg);
  backdrop-filter:blur(10px);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px
}
.music-card:hover{border-color:rgba(139,148,158,.35)}
.music-cover{
  position:relative;
  height:150px;
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.35)
}
.music-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45));
  pointer-events:none
}
#music-cover-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  filter:saturate(.95) contrast(1.05)
}

.music-vol{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:2;
  border:none;
  background:transparent;
  display:flex;
  gap:4px;
  align-items:flex-end;
  cursor:pointer;
  padding:6px 6px;
  border-radius:12px
}
.music-vol:active{transform:scale(.98)}
.mvb{
  width:6px;
  border-radius:999px;
  background:#fff;
  height:10px;
  opacity:.95;
  transform-origin:bottom;
  transition:height 120ms linear, opacity 120ms linear
}
.music-card.is-muted .mvb{opacity:.35}

.music-meta{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0
}
.music-title{
  font-size:44px;
  font-weight:650;
  line-height:1.05;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.music-artist{
  font-size:22px;
  color:var(--text-secondary);
  margin-top:-2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.music-progress{
  position:relative;
  height:18px;
  margin-top:6px;
  cursor:pointer;
  outline:none
}
.music-progress::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  background:rgba(139,148,158,.28);
  border-radius:999px
}
.music-progress-fill{
  position:absolute;
  left:0;
  top:50%;
  height:2px;
  transform:translateY(-50%);
  width:0%;
  background:#fff;
  border-radius:999px
}
.music-progress-knob{
  position:absolute;
  top:50%;
  left:0%;
  width:10px;
  height:10px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:#fff;
  opacity:0;
  transition:opacity .15s ease
}
.music-progress:hover .music-progress-knob,
.music-progress:focus .music-progress-knob{opacity:1}

.music-controls{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px
}
.music-btn{
  border:none;
  background:transparent;
  color:rgba(139,148,158,.8);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  transition:transform .12s ease, color .15s ease, background-color .15s ease
}
.music-btn:hover{color:rgba(230,237,243,.9);background:rgba(25,31,41,.25)}
.music-btn:active{transform:scale(.98)}
.music-btn-main{
  width:76px;
  height:76px;
  background:#fff;
  color:#0b0f14
}
.music-btn-main:hover{background:#fff;color:#0b0f14}
.music-btn-main .icon-pause{display:none}
.music-card.is-playing .music-btn-main .icon-play{display:none}
.music-card.is-playing .music-btn-main .icon-pause{display:flex}

@media (max-width: 900px){
  .music-title{font-size:38px}
  .music-artist{font-size:18px}
}
@media (prefers-reduced-motion: reduce){
  .mvb{transition:none}
  .music-btn{transition:none}
}

.music-card{padding:14px;gap:10px;height:295px;overflow:hidden}
.music-cover{height:120px;border-radius:14px}
.music-meta{gap:8px}

.music-title{
  font-size:28px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.music-artist{font-size:14px}

.music-progress{height:14px;margin-top:2px}
.music-progress::before{height:2px}
.music-progress-fill{height:2px}

.music-controls{gap:14px}
.music-btn{width:40px;height:40px}
.music-btn-main{width:45px;height:45px}

.music-btn svg{width:20px;height:20px}
.music-btn-main svg{
  width:12px;
  height:12px;
  display:block
}

#projects-grid {
  display: flex;
  gap: 18px;
}

#projects-grid.projects-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0 8px;
}

#projects-grid .projects-track {
  display: flex;
  gap: 18px;
  padding: 6px 2px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#projects-grid.projects-marquee::before,
#projects-grid.projects-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}
#projects-grid.projects-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
#projects-grid.projects-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
}

@media (prefers-reduced-motion: reduce) {
  #projects-grid.projects-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  #projects-grid .projects-track {
    transform: none !important;
  }
  #projects-grid.projects-marquee::before,
  #projects-grid.projects-marquee::after {
    display: none;
  }
}

.project-card {
  flex: 0 0 auto;
  width: 230px;
  max-width: 68vw;

  padding: 14px 14px 10px;
  border-radius: 22px;

  background: rgba(18, 18, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  text-decoration: none;
  color: inherit;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  display: flex;
  flex-direction: column;
  gap: 14px;

  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 22, 0.92);
}

.project-card:active {
  transform: translateY(0);
}

.project-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.project-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}
.project-icon::after{ display:none; }

.project-name {
  font-size: 22px;
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: -0.02em;
  color: rgba(245, 247, 255, 0.98);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 200px;
}

.project-metrics {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.70);
}

.metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.metric.github {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.metric.github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
}

.project-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 60px;
}

.project-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chip {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;

  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.chip.link {
  cursor: pointer;
  background: rgba(120, 201, 255, 0.10);
  border-color: rgba(120, 201, 255, 0.20);
}

.project-card.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.project-card.skeleton::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.10) 40%,
    rgba(255,255,255,0) 80%
  );
  transform: translateX(-40%);
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer {
  to { transform: translateX(40%); }
}

.project-card{
  width: 250px;
  max-width: 72vw;
  padding: 14px 14px 12px;
  border-radius: 18px;
  gap: 10px;
}

.project-icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.project-icon::after{ display:none; }

.project-name{
  font-size: 22px;
  line-height: 1.08;
}

.project-desc{
  font-size: 14px;
  line-height: 1.4;
  min-height: 54px;
  -webkit-line-clamp: 3;
}

.metric{
  font-size: 14px;
}
.metric.github{
  width: 28px;
  height: 28px;
  border-radius: 10px;
}
.metric.github svg{
  width: 15px;
  height: 15px;
}

.chip{
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.social-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}

.social-links .social-btn{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(25, 31, 41, 0.6);
  border: 1px solid var(--border-badge);
  border-radius:18px;

  text-decoration:none;
  transition: background-color .2s, border-color .2s, transform .12s ease;
}

.social-links .social-btn:hover{
  background: rgba(25, 31, 41, 0.8);
  border-color: rgba(139,148,158,.35);
  transform: translateY(-1px);
}

.social-links .social-btn:active{
  transform: translateY(0) scale(.985);
}

.social-links .social-btn:focus-visible{
  outline: 2px solid rgba(139,148,158,.35);
  outline-offset: 3px;
}

.social-links .social-btn img{
  width:28px;
  height:28px;
  display:block;
}

#snow-screen{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  z-index: 999999;
  isolation: isolate;
}

.icon-play, .icon-pause{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}