:root {
  --header-bg: rgba(20, 20, 22, 0.6);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-text: #f4f4f5;
  --header-accent: #ffffff;
  --header-divider: rgba(255, 255, 255, 0.15);
  --header-width: 960px;
  --header-width-scrolled: 680px;

  --page-bg: #f8edf6;
  --text-strong: #000000;
  --text-muted: #2f2f2f;
  --card-bg: #d9d9d9;
  --card-bg-alt: #e2e0db;
  --card-border: rgba(0, 0, 0, 0.07);
  --card-shadow-1: rgba(22, 20, 17, 0.08);
  --card-shadow-hover: rgba(22, 20, 17, 0.13);
  --card-inset: rgba(255, 255, 255, 0.46);
  --card-inset-hover: rgba(255, 255, 255, 0.52);
  --divider-color: #777;
  --bg-noise-line: rgba(0, 0, 0, 0.022);

  color-scheme: light;
}

html[data-theme="dark"] {
  --page-bg: #0f0f11;
  --text-strong: #f2f2f0;
  --text-muted: #b6b6b6;
  --card-bg: #1c1d20;
  --card-bg-alt: #1a1b1e;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow-1: rgba(0, 0, 0, 0.5);
  --card-shadow-hover: rgba(0, 0, 0, 0.6);
  --card-inset: rgba(255, 255, 255, 0.05);
  --card-inset-hover: rgba(255, 255, 255, 0.08);
  --divider-color: #3a3a3d;
  --bg-noise-line: rgba(255, 255, 255, 0.03);

  color-scheme: dark;
}

.scroll::-webkit-scrollbar-track {
  background-color: transparent;
}
.scroll::-webkit-scrollbar {
  width: 16px;
}
.scroll::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  background-clip: padding-box;
}
.scroll:hover::-webkit-scrollbar-thumb {
  background-color: #ddd;
}

::-webkit-scrollbar-track {
  background: transparent !important;
}

* {
  scrollbar-color: #888888 transparent !important;
  box-sizing: border-box;
}

html {
  zoom: 110%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 20px 24px 0;
  pointer-events: none;
}

.inside-header {
  width: 100%;
  max-width: var(--header-width);
  pointer-events: auto;
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .inside-header {
  max-width: var(--header-width-scrolled);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--header-border);
  border-radius: 999px;
  padding: 16px 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition:
    padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.site-header.scrolled .header-inner {
  padding: 12px 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  background: rgba(14, 14, 16, 0.75);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.header-logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  transition:
    width 0.4s ease,
    height 0.4s ease;
}

.site-header.scrolled .header-logo img {
  width: 28px;
  height: 28px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.header-nav::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: var(--header-divider);
}

.header-nav a {
  text-decoration: none;
  color: rgba(244, 244, 245, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--header-accent);
}

.site-header.scrolled {
  padding: 8px 16px;
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 22px;
  cursor: pointer;
}

.theme-toggle {
  --toggle-w: 44px;
  --toggle-h: 24px;
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.theme-toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: var(--toggle-w);
  height: var(--toggle-h);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--header-border);
  transition: background 0.3s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(var(--toggle-h) - 4px);
  height: calc(var(--toggle-h) - 4px);
  border-radius: 50%;
  background: #ffffff;
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease,
    color 0.3s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(calc(var(--toggle-w) - var(--toggle-h)));
  background: #26262b;
  color: #f4f4f5;
}

html[data-theme="dark"] .theme-toggle-track {
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  position: absolute;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.5);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.5);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  :root {
    --header-width: 100%;
    --header-width-scrolled: 92%;
  }

  .header-nav {
    display: none;
  }

  .header-toggle {
    display: block;
  }

  .header-inner {
    padding: 14px 20px;
  }
}

.main-title {
  margin-top: 330px;
  margin-left: -150px;
  font-size: 250px;
  color: var(--text-strong);
  transform: rotate(-270deg);
  display: inline-block;
  letter-spacing: 20px;
}

.profile-card-container {
  position: absolute;

  top: 200px;
  left: 350px;

  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.profile-card {
  position: relative;
  width: 420px;
  height: 650px;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 45px 35px;
  font-family: Georgia, serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-card.no-activity {
  justify-content: center;
}

.profile-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 0;
}

.profile-banner[hidden] {
  display: none;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 55%,
    rgba(217, 217, 217, 0.9) 100%
  );
}

.profile-card > .profile-section,
.profile-card > .divider,
.profile-card > .activity-box {
  position: relative;
  z-index: 1;
}

.profile-card.has-banner .avatar-container {
  margin-top: -35px;
}

.activity-box[hidden],
.divider[hidden] {
  display: none !important;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.avatar-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
}

.avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128%;
  height: 128%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.avatar-decoration[hidden] {
  display: none;
}

.avatar-container {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-placeholder {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  position: absolute;
}

#discord-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-info {
  text-align: center;
}

#discord-username {
  margin: 0;
  font-size: 50px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
}

.status-indicator {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.divider {
  width: 100%;
  height: 2px;
  background: var(--divider-color);
  margin: 45px 0;
}

.activity-box {
  background: #000;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.activity-img {
  width: 76px;
  height: 76px;
  background: #d9d9d9;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.activity-placeholder {
  color: #444;
  font-weight: 700;
  position: absolute;
}

#activity-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.activity-content {
  color: white;
  flex: 1;
}

.activity-label {
  color: #cfcfcf;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.activity-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.activity-details {
  font-size: 14px;
  color: #bfbfbf;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #747474;
}

.status-dot.online {
  background: #23a55a;
}

.status-dot.idle {
  background: #f0b232;
}

.status-dot.dnd {
  background: #f23f43;
}

.status-dot.offline {
  background: #747474;
}

#act-dot-activity {
  position: absolute;
  top: 16px;
  right: 16px;
}

@media (max-width: 500px) {
  .profile-card {
    width: 100%;
    padding: 35px 25px;
  }

  #discord-username {
    font-size: 52px;
  }

  .avatar-wrapper,
  .avatar-container {
    width: 140px;
    height: 140px;
  }

  .activity-name {
    font-size: 22px;
  }
}

.avatar-placeholder,
.activity-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.profile-sidebar {
  position: absolute;
  top: 205px;
  left: 790px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
}

.music-card {
  width: 310px;
  background: var(--card-bg);
  border-radius: 22px;
  padding: 12px;
  font-family: Georgia, serif;
  transition: transform 0.25s ease;
}

.music-card:hover {
  transform: translateY(-3px);
}

.music-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.music-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
}

.music-header a {
  margin-top: 3px;
  color: #3d36d9;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.music-header a:hover {
  text-decoration: underline;
}

.music-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.album-cover {
  width: 48px;
  height: 48px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.song-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-container {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.disc-gif {
  width: 48px;
  height: 48px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.small-card,
.links-card {
  width: 310px;
  background: var(--card-bg);
  border-radius: 22px;
  padding: 12px;
  font-family: Georgia, serif;
  transition: transform 0.3s ease;
}

.small-card:hover {
  transform: translateY(-3px);
}

.small-card h3,
.links-card h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1;
}

.small-card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}

.small-avatar,
.clock-box {
  width: 44px;
  height: 44px;
  flex: 0 0 48px;
  border-radius: 11px;
  color: #fff;
  object-fit: cover;
}

.small-avatar {
  background: #000;
}

.clock-box {
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0;
  font-weight: 700;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: multiply;
}

.small-info {
  min-width: 0;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
}

.small-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
}

#timezone-name {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.link-item:hover {
  transform: translateX(3px);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .profile-card-container,
  .profile-sidebar {
    position: static;
    margin: 24px auto;
  }

  .profile-card-container {
    justify-content: center;
  }

  .profile-sidebar {
    width: 100%;
    max-width: 420px;
  }

  .music-card {
    width: 100%;
  }

  .small-card,
  .links-card {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .music-header h3 {
    font-size: 24px;
  }

  .song-name {
    font-size: 16px;
  }

  .artist-name {
    font-size: 14px;
  }

  .album-cover {
    width: 60px;
    height: 60px;
  }

  .disc-container {
    width: 58px;
    height: 58px;
  }

  .disc-gif {
    width: 58px;
    height: 58px;
  }
}

.sidebar-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-card-link:hover {
  transform: translateY(-3px);
}

.lastfm-label {
  display: block;
  margin-top: 3px;
  color: #06066b;
  font-size: 10px;
  font-weight: 700;
}

.clock-box img {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  transform: none;
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-card {
  position: absolute;
  left: 360px;
  width: 400px;
  background: var(--card-bg);
  border-radius: 22px;
  padding: 30px;
  font-family: Georgia, serif;
}

.mp-card {
  position: fixed;
  top: 205px;
  right: 40px;
  width: 100px;
  background: var(--card-bg);
  border-radius: 30px;
  padding: 18px;
  font-family: Georgia, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 900;
}

.mp-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.mp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-info {
  text-align: center;
  width: 100%;
}

.mp-song {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-artist {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-sliders {
  display: flex;
  gap: 10px;
  margin: 4px 0;
}

.mp-slider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 32px;
}

.mp-slider-title {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-strong);
  text-align: center;
  line-height: 1.1;
}

.mp-slider-track {
  position: relative;
  width: 8px;
  height: 70px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  overflow: visible;
}

.mp-slider-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
}

.mp-slider-thumb {
  position: absolute;
  left: 50%;
  bottom: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.mp-vertical-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 24px;
  background: transparent;
  transform: translate(-50%, -50%) rotate(-90deg);
  outline: none;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.mp-vertical-range::-webkit-slider-runnable-track {
  background: transparent;
}

.mp-vertical-range::-moz-range-track {
  background: transparent;
}

.mp-vertical-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
}

.mp-vertical-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
}
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mp-btn:hover {
  transform: translateY(-2px);
}

.mp-btn-main {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .mp-card {
    position: static;
    margin: 24px auto;
  }
}

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.enter-text {
  color: #f4f4f5;
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  animation: enter-pulse 1.8s ease-in-out infinite;
}

@keyframes enter-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.work-title {
  position: absolute;
  top: 1200px;
  left: -500px;
  font-size: 170px;
  color: var(--text-strong);
  transform: rotate(-270deg);
  transform-origin: top left;
  white-space: nowrap;
  letter-spacing: 10px;
  line-height: 1;
  margin: 0;
}

.section-divider {
  width: 1200px;
  height: 1px;
  background: #2f343d;
  position: relative;
  left: 25%;
  transform: translateX(-50%);
  margin: 80px 0;
  top: 10dvh;
  border: none;
}

.work-container {
  position: relative;
  max-width: 1800px;
  width: 1200px;
  left: -475px;
  top: 200px;
  margin: 0 auto 160px;
  padding: 100px;
  background: var(--card-bg-alt);
  border-radius: 28px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #0b0b0d;
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 220px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.work-card-last {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 314.67px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #0b0b0d;
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 220px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.work-card-last:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.work-logo {
  width: 84px;
  height: 84px;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.work-card-info {
  margin-top: auto;
}

.work-name {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.work-summary {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.work-arrow {
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.work-card:hover .work-arrow {
  transform: translate(3px, -3px);
  color: #fff;
}

@media (max-width: 900px) {
  .work-container {
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 20px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

.skills-title {
  font-size: 170px;
  text-align: center;
  display: block;
  width: 100%;
  margin: 100px 0;

  position: relative;
  left: -180px;
}

@media (max-width: 900px) {
  .skills-title {
    font-size: 80px;
    left: 0;
    margin: 50px 0;
  }
}

.skills-container {
  max-width: 1200px;
  margin: 30px -550px;
  margin-top: -100px;
  padding: 60px 40px;
  background: var(--card-bg-alt);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  width: 100%;
}
.skills-card {
  width: 240px;
  height: 200px;
  display: flex;
  flex-direction: column;
  background: #0b0b0d;
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 150px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skills-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.skills-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: transparent;
}
.skill-name {
  font-size: 18px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .skills-container {
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 20px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.tools-container {
  max-width: 1000px;
  margin: 50px -450px;
  margin-top: -100px;
  padding: 60px 20px;
  padding-left: 60px;
  background: var(--card-bg-alt);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tools-title {
  font-size: 80px;
  text-align: center;
  display: block;
  width: 100%;
  margin: 100px -200px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tools-title {
    font-size: 80px;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.tools-card {
  width: 240px;
  height: 200px;
  display: flex;
  flex-direction: column;
  background: #0b0b0d;
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  color: #fff;
  position: relative;
  min-height: 150px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tools-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.tools-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: transparent;
}
.tools-name {
  font-size: 18px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .tools-container {
    margin-left: 20px;
    margin-right: 20px;
    padding: 32px 20px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1600px) {
  html {
    zoom: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .main-title {
    display: block;
    margin: 150px auto 40px;
    font-size: min(25vw, 250px);
    letter-spacing: min(2vw, 20px);
    line-height: 1;
    text-align: center;
    transform: none;
    transform: translate(270deg);
  }

  .profile-card-container,
  .profile-sidebar,
  .about-card,
  .work-title {
    position: static;
  }

  .profile-card-container {
    width: 100%;
    margin: 0 auto 24px;
    padding: 0 20px;
    justify-content: center;
  }

  .profile-card {
    width: min(420px, 100%);
    height: auto;
  }

  .profile-sidebar {
    width: min(420px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto 24px;
  }

  .profile-sidebar {
    display: contents;
  }

  .music-card,
  .small-card,
  .links-card {
    width: min(420px, calc(100% - 40px));
    margin: 0 auto 16px;
  }

  .about-card {
    width: min(420px, calc(100% - 40px));
    margin: 0 auto 24px;
  }

  .section-divider {
    width: calc(100% - 40px);
    left: auto;
    top: auto;
    margin: 56px auto;
    transform: none;
  }

  .work-title,
  .skills-title,
  .tools-title {
    width: calc(100% - 40px);
    margin: 56px auto;
    left: auto;
    transform: none;
    text-align: center;
    white-space: normal;
  }

  .work-title {
    font-size: min(18vw, 170px);
    letter-spacing: min(1vw, 10px);
    line-height: 1;
  }

  .work-container,
  .skills-container,
  .tools-container,
  .guestbook-section {
    width: calc(100% - 40px);
    max-width: 1200px;
    left: auto;
    top: auto;
    margin: 0 auto 72px;
  }

  .work-container {
    padding: 60px 40px;
  }

  .skills-container,
  .tools-container {
    padding: 60px 40px;
  }

  .skills-grid,
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .skills-card,
  .tools-card {
    width: 100%;
    max-width: 240px;
    justify-self: center;
  }
  #work,
  #skills {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .header-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .main-title {
    margin-top: 116px;
    font-size: min(24vw, 130px);
  }

  .profile-card-container {
    padding: 0 16px;
  }

  .profile-card {
    padding: 35px 25px;
  }

  #discord-username {
    font-size: clamp(38px, 13vw, 52px);
  }

  .profile-sidebar,
  .about-card {
    width: calc(100% - 32px);
  }

  .section-divider,
  .work-title,
  .skills-title,
  .tools-title,
  .work-container,
  .skills-container,
  .tools-container {
    width: calc(100% - 32px);
  }

  .work-container,
  .skills-container,
  .tools-container {
    padding: 32px 20px;
  }

  .work-grid,
  .skills-grid,
  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-card-last {
    width: 100%;
  }

  .skills-title {
    font-size: min(20vw, 80px);
  }

  .tools-title {
    font-size: min(16vw, 80px);
  }
}

@media (max-width: 768px) {
  .header-toggle {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    line-height: 1;
  }

  .header-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.2);
  }

  .site-header.menu-open .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px 16px;
    border-radius: 24px;
    animation: mobile-menu-expand 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.menu-open .header-nav {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    order: 3;
    margin: 14px 0 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--header-divider);
  }

  .site-header.menu-open .header-nav::before {
    display: none;
  }

  .site-header.menu-open .header-nav a {
    display: block;
    padding: 10px 4px;
    font-size: 13px;
    opacity: 0;
    transform: translateX(-10px);
    animation: mobile-menu-item-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .site-header.menu-open .header-nav li:nth-child(1) a {
    animation-delay: 0.05s;
  }

  .site-header.menu-open .header-nav li:nth-child(2) a {
    animation-delay: 0.1s;
  }

  .site-header.menu-open .header-nav li:nth-child(3) a {
    animation-delay: 0.15s;
  }

  .site-header.menu-open .header-nav li:nth-child(4) a {
    animation-delay: 0.2s;
  }

  .header-toggle {
    transition:
      background 0.2s ease,
      transform 0.2s ease;
  }

  .header-toggle:active {
    transform: scale(0.9);
  }

  .mp-card {
    display: none;
    position: static;
    width: 100%;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  }

  .mp-card.is-open {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
    animation: mobile-player-in 0.42s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mp-cover {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    grid-row: 1 / -1;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .mp-cover:active {
    transform: scale(0.94) rotate(-3deg);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
  }

  .mp-info {
    max-width: 100%;
    grid-column: 2;
    text-align: left;
  }

  .mp-song {
    font-size: 14px;
  }

  .mp-artist {
    font-size: 12px;
  }

  .mp-sliders {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    gap: 8px;
    width: 100%;
    margin: 0;
  }

  .mp-slider-wrap {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .mp-slider-title {
    font-size: 8px;
    text-align: left;
  }

  .mp-slider-track {
    width: 100%;
    height: 8px;
    overflow: visible;
  }

  .mp-slider-fill {
    top: 0;
    bottom: auto;
    height: 100%;
    width: 0;
  }

  .mp-slider-thumb {
    top: 50%;
    bottom: auto;
    left: 0;
    transform: translate(-50%, -50%);
  }

  .mp-vertical-range {
    width: 100%;
    height: 24px;
    transform: translate(-50%, -50%);
  }

  .mp-controls {
    grid-column: 2;
    justify-content: flex-start;
    gap: 12px;
  }

  .mp-btn {
    width: 28px;
    height: 28px;
  }

  .mp-btn-main {
    width: 34px;
    height: 34px;
  }

  .mp-btn {
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  .mp-btn:active {
    transform: scale(0.88);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
  }

  .mp-slider-thumb {
    transition:
      left 0.1s linear,
      box-shadow 0.18s ease;
  }

  .mp-slider-wrap:active .mp-slider-thumb {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
  }
}

@keyframes mobile-menu-expand {
  from {
    transform: translateY(-8px) scale(0.98);
    opacity: 0.88;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes mobile-menu-item-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mobile-player-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.menu-open .header-inner,
  .site-header.menu-open .header-nav a,
  .mp-card.is-open {
    animation: none;
  }

  .header-toggle,
  .mp-cover,
  .mp-btn,
  .mp-slider-thumb {
    transition: none;
  }
}

@media (min-width: 769px) {
  .mp-card {
    position: fixed;
    top: 205px;
    right: 40px;
    margin: 0;
    isolation: isolate;
  }
}
.scroll {
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 0;
}

body {
  background:
    radial-gradient(
      circle at 72% 10%,
      rgba(255, 255, 255, 0.82),
      transparent 24rem
    ),
    var(--page-bg);
  overflow-x: hidden;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(
      circle at 72% 10%,
      rgba(255, 255, 255, 0.05),
      transparent 24rem
    ),
    var(--page-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    115deg,
    var(--bg-noise-line) 0,
    var(--bg-noise-line) 1px,
    transparent 1px,
    transparent 5px
  );
}

.header-nav a {
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.profile-card,
.music-card,
.small-card,
.links-card,
.about-card {
  border: 1px solid var(--card-border);
  box-shadow:
    0 18px 40px var(--card-shadow-1),
    inset 0 1px var(--card-inset);
}

.profile-card {
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 52px var(--card-shadow-hover),
    inset 0 1px var(--card-inset-hover);
}

.avatar-container {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.14);
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms ease;
}

.profile-card:hover .avatar-container {
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.58),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.status-dot.online,
.status-dot.idle,
.status-dot.dnd {
  animation: presence-pulse 2.4s ease-out infinite;
}

.activity-box:not([hidden]) {
  animation: activity-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.work-card,
.work-card-last,
.skills-card,
.tools-card {
  overflow: hidden;
}

.work-card::before,
.work-card-last::before,
.skills-card::before,
.tools-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 28%,
    rgba(255, 255, 255, 0.09) 48%,
    transparent 67%
  );
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.work-card:hover::before,
.work-card-last:hover::before,
.skills-card:hover::before,
.tools-card:hover::before {
  transform: translateX(130%);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.has-entered .main-title {
  animation: title-in 700ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.has-entered .profile-card-container {
  animation: rise-in 650ms 150ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.has-entered .profile-sidebar {
  animation: rise-in 650ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: rotate(-270deg) translateY(40px);
  }
  to {
    opacity: 1;
    transform: rotate(-270deg) translateY(0);
  }
}

@keyframes activity-in {
  from {
    opacity: 0;
    transform: translateY(300px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes presence-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--presence-glow);
  }
  55% {
    box-shadow: 0 0 0 6px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.work-grid {
  min-height: 468px;
}

.skills-grid {
  min-height: 200px;
}

.tools-grid {
  min-height: 200px;
}

@media (max-width: 1600px) {
  @keyframes title-in {
    from {
      opacity: 0;
      transform: translateY(-40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.about-text {
  line-height: 1.8;
  color: var(--text-muted);
}

.hover-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--text-strong);
  border-bottom: 1px dashed var(--divider-color);
  transition: all 0.2s ease;
}

.hover-tooltip:hover {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.wiki-link {
  text-decoration: none;
}

.hover-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card-bg-alt);
  color: var(--text-strong);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  border-radius: 8px;
  width: max-content;
  max-width: 250px;
  text-align: center;
  box-shadow: 0 10px 25px var(--card-shadow-1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.hover-tooltip::before {
  content: "";
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--card-bg-alt);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.hover-tooltip:hover::after,
.hover-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .lastfm-label {
  color: #818cf8;
  opacity: 0.9;
}

html[data-theme="dark"] .music-card:hover .lastfm-label {
  color: #a5b4fc;
  opacity: 1;
}

.github-contributions {
  position: relative;
  top: 170px;
  left: auto;
  width: min(860px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  margin: 0 -350px 56px;
  z-index: 2;
  padding: 24px 26px 20px;
  color: var(--text-strong);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow:
    0 18px 40px var(--card-shadow-1),
    inset 0 1px var(--card-inset);
  font-family: "Space Grotesk", sans-serif;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.github-contributions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.github-contributions-header h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.1;
}

.github-contributions-header p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.github-contributions-header a {
  flex-shrink: 0;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.github-contributions-header a:hover {
  color: var(--text-strong);
}

.github-contributions-header a span {
  font-size: 14px;
}

.github-contributions .calendar {
  min-height: 104px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.github-contributions .calendar svg {
  display: block;
  min-width: 650px;
  max-width: none;
}

.github-contributions .calendar .contrib-number,
.github-contributions .calendar .text-muted,
.github-contributions .calendar .ContributionCalendar-label,
.github-contributions .calendar .ContributionCalendar-day + text,
.github-contributions .calendar .js-calendar-graph-svg + div {
  color: var(--text-muted) !important;
  fill: var(--text-muted) !important;
}

.github-contributions .calendar .ContributionCalendar-day {
  stroke: var(--card-bg) !important;
  stroke-width: 2px;
  shape-rendering: geometricPrecision;
}

.github-contributions .calendar .ContributionCalendar-day[data-level="0"] {
  fill: color-mix(in srgb, var(--text-strong) 7%, var(--card-bg)) !important;
}

.github-contributions .calendar .ContributionCalendar-day[data-level="1"] {
  fill: #9be9a8 !important;
}

.github-contributions .calendar .ContributionCalendar-day[data-level="2"] {
  fill: #40c463 !important;
}

.github-contributions .calendar .ContributionCalendar-day[data-level="3"] {
  fill: #30a14e !important;
}

.github-contributions .calendar .ContributionCalendar-day[data-level="4"] {
  fill: #216e39 !important;
}

html[data-theme="dark"]
  .github-contributions
  .calendar
  .ContributionCalendar-day[data-level="0"] {
  fill: #252a2e !important;
}

.github-contributions .calendar .contrib-footer {
  color: var(--text-muted) !important;
}

@media (max-width: 600px) {
  .github-contributions {
    width: calc(100% - 32px);
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .github-contributions-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .github-contributions-header h3 {
    font-size: 21px;
  }

  .github-contributions .calendar svg {
    min-width: 620px;
  }
}

.github-contributions-graph {
  width: 100%;
  min-height: 164px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 2px;
  color: var(--text-muted);
  font-family: "Space Grotesk", sans-serif;
  scrollbar-width: thin;
}

.github-contributions-image {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  min-height: 108px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  filter: var(--github-graph-filter, none);
}

html[data-theme="dark"] .github-contributions-image {
  --github-graph-filter: invert(0.88) hue-rotate(180deg) brightness(0.82)
    contrast(1.12);
}

@media (max-width: 1600px) {
  .github-contributions {
    top: 0;
    width: min(830px, calc(100vw - 40px));
    margin: 24px auto 46px;
  }
}

@media (max-width: 600px) {
  .github-contributions {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}

.github-calendar-shell {
  min-width: 690px;
}

.github-calendar-top,
.github-calendar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.github-calendar-top {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.github-calendar-settings {
  white-space: nowrap;
}

.github-calendar-body {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
}

.github-calendar-day-labels {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  gap: 3px;
  padding-top: 17px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 11px;
}

.github-calendar-grid-wrap {
  min-width: 0;
}

.github-calendar-months {
  position: relative;
  height: 17px;
  color: var(--text-muted);
  font-size: 10px;
}

.github-calendar-month {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.github-calendar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 11px);
  grid-auto-columns: 11px;
  gap: 3px;
}

.github-calendar-day {
  width: 11px;
  height: 11px;
  border: 1px solid color-mix(in srgb, var(--text-strong) 7%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--text-strong) 8%, var(--card-bg));
}

.github-calendar-day[data-level="1"] {
  background: #9be9a8;
}
.github-calendar-day[data-level="2"] {
  background: #40c463;
}
.github-calendar-day[data-level="3"] {
  background: #30a14e;
}
.github-calendar-day[data-level="4"] {
  background: #216e39;
}

html[data-theme="dark"] .github-calendar-day[data-level="0"] {
  background: #161b22;
  border-color: #21262d;
}

html[data-theme="dark"] .github-calendar-day[data-level="1"] {
  background: #0e4429;
}
html[data-theme="dark"] .github-calendar-day[data-level="2"] {
  background: #006d32;
}
html[data-theme="dark"] .github-calendar-day[data-level="3"] {
  background: #26a641;
}
html[data-theme="dark"] .github-calendar-day[data-level="4"] {
  background: #39d353;
}

.github-calendar-day:hover {
  outline: 1px solid var(--text-strong);
  outline-offset: 1px;
}

.github-calendar-bottom {
  margin-top: 13px;
  color: var(--text-muted);
}

.github-calendar-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.github-calendar-legend .github-calendar-day {
  display: inline-block;
}

.github-contributions-loading,
.github-contributions-error {
  display: block;
  padding: 36px 0;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.easter-egg {
  bottom: 20px;
  margin-left: 580px;
  margin-bottom: 20px;
  color: rgb(179, 178, 178);
  font-size: 6px;
  cursor: pointer;
  animation: easter-egg-bounce 3s ease-in-out infinite;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.easter-egg a {
  text-decoration: none;
}

@keyframes easter-egg-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@media (max-width: 634px) {
  .easter-egg {
    margin-left: 150px;
    font-size: 5px;
  }
}
.guestbook-section {
  width: max(1000px, calc(100% - 40px));
  margin: 120px -430px 80px;
  scroll-margin-top: 130px;
}

.guestbook-heading {
  margin-bottom: 22px;
}

.guestbook-heading h2,
.guestbook-feed-header h3 {
  margin: 8px 0 0;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.guestbook-heading p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.65;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 18px;
  padding: 18px;
  background: var(--card-bg-alt);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow:
    0 18px 40px var(--card-shadow-1),
    inset 0 1px var(--card-inset);
}

.guestbook-form,
.guestbook-feed-panel {
  border-radius: 20px;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: #0b0b0d;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.17);
}

.guestbook-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guestbook-label-row,
.guestbook-form-footer,
.guestbook-feed-header,
.guestbook-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guestbook-field label,
.guestbook-label-row span {
  color: rgba(255, 255, 255, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.guestbook-label-row span {
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0;
}

.guestbook-field input,
.guestbook-field textarea {
  field-sizing: content;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font:
    500 12px/1.6 "JetBrains Mono",
    monospace;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.guestbook-field input {
  height: 45px;
  padding: 0 13px;
}

.guestbook-field textarea {
  min-height: 140px;
  padding: 12px 13px;
  resize: none;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.guestbook-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.guestbook-form-footer {
  margin-top: auto;
  flex-wrap: wrap;
}

.guestbook-status {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font:
    500 10px/1.4 "JetBrains Mono",
    monospace;
}

.guestbook-status.is-success {
  color: #9ce0b2;
}
.guestbook-status.is-error {
  color: #ff9b9b;
}

.guestbook-field label span {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.guestbook-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.guestbook-form-actions .guestbook-submit,
.guestbook-form-actions .word {
  width: 100%;
}

.guestbook-form-actions .word {
  display: block;
  text-align: center;
  font-size: 10px;
}

.word {
  color: #818cf8;
}

.guestbook-cancel,
.guestbook-comment-action {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font:
    600 9px "JetBrains Mono",
    monospace;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.guestbook-cancel {
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  width: 100%;
}

.guestbook-cancel:hover,
.guestbook-comment-action:hover {
  transform: translateY(-1px);
}

.guestbook-cancel:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.guestbook-form.is-editing {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 8px 22px rgba(0, 0, 0, 0.17);
}

.guestbook-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  flex-shrink: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font:
    600 10px "JetBrains Mono",
    monospace;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.guestbook-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #e8e8e8;
}

.guestbook-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.guestbook-feed-panel {
  min-height: 360px;
  padding: 26px;
  background: var(--card-bg);
}

.guestbook-feed-header {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.guestbook-feed-header h3 {
  font-size: 25px;
  letter-spacing: -0.045em;
}

.guestbook-count {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--text-muted);
  font:
    600 10px "JetBrains Mono",
    monospace;
  white-space: nowrap;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 350px;
  margin-top: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.guestbook-list::-webkit-scrollbar {
  width: 7px;
}
.guestbook-list::-webkit-scrollbar-thumb {
  border: 0;
  background: var(--divider-color);
}

.guestbook-comment {
  padding: 14px 4px;
  border-bottom: 1px solid var(--card-border);
}

.guestbook-comment:last-child {
  border-bottom: 0;
}

.guestbook-comment-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.guestbook-comment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.guestbook-comment-action {
  min-height: 24px;
  padding: 0 8px;
}

.guestbook-comment-action:hover {
  background: var(--card-bg-alt);
  border-color: var(--divider-color);
  color: var(--text-strong);
}

.guestbook-comment-action.is-delete:hover {
  border-color: rgba(207, 65, 65, 0.45);
  background: rgba(207, 65, 65, 0.1);
  color: #c53a3a;
}

.guestbook-comment-name {
  overflow: hidden;
  color: var(--text-strong);
  font:
    600 11px "JetBrains Mono",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guestbook-comment-time {
  flex-shrink: 0;
  color: var(--text-muted);
  font:
    500 10px "JetBrains Mono",
    monospace;
}

.guestbook-comment-message {
  margin: 7px 0 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.guestbook-replies {
  display: grid;
  gap: 8px;
  margin: 13px 0 0 12px;
  padding-left: 12px;
  border-left: 1px solid var(--card-border);
}

.guestbook-reply {
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--card-bg-alt);
}

.guestbook-reply-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.guestbook-reply-name {
  overflow: hidden;
  color: var(--text-strong);
  font:
    600 10px "JetBrains Mono",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guestbook-reply-time {
  flex-shrink: 0;
  color: var(--text-muted);
  font:
    500 9px "JetBrains Mono",
    monospace;
}

.guestbook-reply-message {
  margin: 5px 0 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.guestbook-reply-form {
  margin: 12px 0 0 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg-alt);
}

.guestbook-reply-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.guestbook-reply-fields label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font:
    600 9px "JetBrains Mono",
    monospace;
}

.guestbook-reply-fields input,
.guestbook-reply-fields textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  outline: none;
  background: var(--page-bg);
  color: var(--text-strong);
  font:
    500 11px/1.45 "JetBrains Mono",
    monospace;
}

.guestbook-reply-fields input {
  height: 34px;
  padding: 0 9px;
}

.guestbook-reply-fields textarea {
  min-height: 70px;
  padding: 8px 9px;
  resize: none;
}

.guestbook-reply-fields input:focus,
.guestbook-reply-fields textarea:focus {
  border-color: var(--divider-color);
  box-shadow: 0 0 0 3px var(--card-inset);
}

.guestbook-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.guestbook-reply-status {
  min-height: 14px;
  margin: 0;
  color: var(--text-muted);
  font:
    500 9px/1.35 "JetBrains Mono",
    monospace;
}

.guestbook-reply-status.is-error {
  color: #c53a3a;
}

.guestbook-reply-footer button {
  min-height: 30px;
  flex-shrink: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--text-strong);
  color: var(--page-bg);
  font:
    600 9px "JetBrains Mono",
    monospace;
  cursor: pointer;
}

.guestbook-reply-footer button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.guestbook-state {
  margin: auto 0;
  padding: 36px 0;
  color: var(--text-muted);
  font:
    500 11px/1.6 "JetBrains Mono",
    monospace;
  text-align: center;
}

@media (max-width: 1600px) {
  .guestbook-section {
    width: 900px;
    margin: 120px auto 80px;
    scroll-margin-top: 130px;
  }

  .guestbook-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 16px;
  }

  .guestbook-form,
  .guestbook-feed-panel {
    padding: 22px;
  }
}

@media (max-width: 900px) {
  .guestbook-section {
    width: 100px;
    margin: 120px auto 80px;
    scroll-margin-top: 130px;
  }

  .guestbook-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
    padding: 16px;
  }

  .guestbook-form,
  .guestbook-feed-panel {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  .guestbook-section {
    width: calc(100% - 32px);
    margin-top: 80px;
    margin-bottom: 56px;
  }

  .guestbook-heading h2 {
    font-size: 36px;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
  }

  .guestbook-form,
  .guestbook-feed-panel {
    padding: 20px;
    border-radius: 17px;
  }

  .guestbook-field textarea {
    min-height: 120px;
  }
  .guestbook-feed-panel {
    min-height: 300px;
  }
  .guestbook-list {
    max-height: 320px;
  }

  .guestbook-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guestbook-form-actions {
    align-self: flex-end;
    width: 100%;
  }

  .guestbook-reply-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .guestbook-section {
    width: calc(100% - 20px);
  }

  .guestbook-form,
  .guestbook-feed-panel {
    padding: 16px;
  }

  .guestbook-comment-name,
  .guestbook-reply-name {
    max-width: 55vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-field input,
  .guestbook-field textarea,
  .guestbook-submit {
    transition: none;
  }
}

.guestbook-message-composer {
  position: relative;
}

.guestbook-message-composer .guestbook-field textarea,
.guestbook-message-composer textarea {
  padding-bottom: 48px;
}

.guestbook-composer-tools {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
}

.guestbook-gif-button {
  min-width: 34px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font:
    700 9px/1 "JetBrains Mono",
    monospace;
  letter-spacing: -0.04em;
  cursor: pointer;
  transition:
    background 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.guestbook-gif-button:hover,
.guestbook-gif-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.guestbook-gif-button:active {
  transform: scale(0.96);
}

.guestbook-gif-button:focus-visible,
.guestbook-gif-picker button:focus-visible,
.guestbook-gif-search-wrap input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.74);
  outline-offset: 2px;
}

.guestbook-gif-picker {
  position: absolute;
  z-index: 45;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(342px, calc(100vw - 72px));
  max-height: 352px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #17181b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
  transform-origin: left bottom;
}

.guestbook-gif-picker[hidden] {
  display: none;
}

.guestbook-gif-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
  font:
    700 10px "JetBrains Mono",
    monospace;
}

.guestbook-gif-picker-header button {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font:
    500 19px/1 "Space Grotesk",
    sans-serif;
  cursor: pointer;
}

.guestbook-gif-picker-header button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.guestbook-gif-search-wrap {
  position: relative;
  display: block;
}

.guestbook-gif-search-icon {
  position: absolute;
  top: 50%;
  left: 9px;
  color: rgba(255, 255, 255, 0.42);
  font:
    18px/1 "Space Grotesk",
    sans-serif;
  pointer-events: none;
  transform: translateY(-52%);
}

.guestbook-gif-search-wrap input {
  display: block;
  width: 100%;
  height: 31px;
  padding: 0 9px 0 29px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  outline: none;
  background: #0e0f11;
  color: #fff;
  font:
    500 10px "JetBrains Mono",
    monospace;
}

.guestbook-gif-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.guestbook-gif-search-wrap input:focus {
  border-color: rgba(255, 255, 255, 0.38);
}

.guestbook-gif-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-height: 106px;
  max-height: 216px;
  margin-top: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.guestbook-gif-results::-webkit-scrollbar {
  width: 5px;
}

.guestbook-gif-results::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.guestbook-gif-result {
  position: relative;
  display: block;
  aspect-ratio: 1.42 / 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #222329;
  cursor: pointer;
}

.guestbook-gif-result img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 170ms cubic-bezier(0.23, 1, 0.32, 1),
    filter 170ms cubic-bezier(0.23, 1, 0.32, 1);
}

.guestbook-gif-result:hover,
.guestbook-gif-result:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
}

.guestbook-gif-result:hover img {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.guestbook-gif-picker-status {
  min-height: 14px;
  margin: 8px 1px 0;
  color: rgba(255, 255, 255, 0.48);
  font:
    500 8px/1.45 "JetBrains Mono",
    monospace;
}

.guestbook-gif-picker-footer {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.28);
  font:
    500 8px "JetBrains Mono",
    monospace;
  text-align: right;
}

.guestbook-gif-picker-footer span {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.guestbook-gif-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.guestbook-gif-preview[hidden] {
  display: none;
}

.guestbook-gif-preview img {
  display: block;
  width: 68px;
  height: 46px;
  border-radius: 5px;
  object-fit: cover;
}

.guestbook-gif-preview button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font:
    600 8px "JetBrains Mono",
    monospace;
  cursor: pointer;
}

.guestbook-gif-preview button:hover {
  color: #ff9b9b;
}

.guestbook-comment-gif {
  display: block;
  width: min(100%, 260px);
  max-height: 190px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: contain;
}

.guestbook-comment-message:empty {
  display: none;
}

@media (max-width: 760px) {
  .guestbook-gif-picker {
    width: min(342px, calc(100vw - 54px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-gif-button,
  .guestbook-gif-result img {
    transition: none;
  }
}

.guestbook-link {
  color: #818cf8;
  text-decoration: underline;
  text-decoration-color: rgba(129, 140, 248, 0.45);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.guestbook-link:hover {
  color: #a5b4fc;
  text-decoration-color: currentColor;
}

.guestbook-gif-results {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.guestbook-gif-embed {
  display: block;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111214;
}

.guestbook-reply-gif-controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.guestbook-reply-gif-button,
.guestbook-reply-gif-remove {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #25262b;
  color: #f5f5f5;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.guestbook-reply-gif-button {
  padding: 6px 8px;
  font-weight: 800;
  color: #ffdd57;
}

.guestbook-reply-gif-preview {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.guestbook-reply-gif-preview img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.guestbook-reply-gif-remove {
  padding: 5px 6px;
}
