
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/assets/fonts/parkinsans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/parkinsans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/parkinsans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/parkinsans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/parkinsans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/parkinsans-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg:             rgb(10, 10, 10);
  --bg-card:        rgb(20, 20, 20);
  --panel-bg:       rgb(14, 14, 14);
  --text:           #ffffff;
  --text-2:         rgba(255, 255, 255, 0.62);
  --text-muted:     rgba(255, 255, 255, 0.32);
  --border:         rgba(255, 255, 255, 0.06);
  --border-hov:     rgba(255, 255, 255, 0.14);
  --shadow:         0px 15px 35px rgba(0, 0, 0, 0.35);

  --panel-bg-image: none;
  --panel-overlay:  linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.30) 0%,
    var(--bg) 95%
  );
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Parkinsans', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background 0.3s, color 0.3s;
}

#loading {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

#spinner {
  width: 50px;
  height: 50px;
  border: 2px solid var(--bg);
  border-bottom-color: var(--text);
  border-radius: 50%;
  animation: rotate 0.5s infinite linear;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes border-pulse {
  0%   { border-color: var(--border); }
  50%  { border-color: #FF5555; }
  100% { border-color: var(--border); }
}

.border-pulse {
  animation: border-pulse 2.5s ease-in-out;
}

#profile {
  width: 25vw;
  min-width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 5vh 4.5vw;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s;
}

#profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--panel-bg-image) center / cover no-repeat;
  animation: panel-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

#profile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--panel-overlay);
  pointer-events: none;
}

#profile > * {
  position: relative;
  z-index: 1;
}

@keyframes panel-drift {
  0%   { transform: scale(1.08) translate(0%,    0%);   }
  25%  { transform: scale(1.11) translate(0.9%,  1.4%); }
  50%  { transform: scale(1.09) translate(-1.1%, 0.7%); }
  75%  { transform: scale(1.12) translate(0.4%, -1.3%); }
  100% { transform: scale(1.08) translate(-0.7%, 0.6%); }
}

#profile_img {
  width: 108px;
  height: 108px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2vh;
  overflow: hidden;
  flex-shrink: 0;
  user-select: none;
}

#profile_img img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  display: block;
}

#username {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.6vh;
  line-height: 1.2;
}

#userbio {
  font-size: 14px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-2);
  margin-bottom: 1.8vh;
  line-height: 1.6;
}

#about {
  font-family: 'Parkinsans', sans-serif;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 2.5vh;
}

#about span {
  display: block;
  margin: 0.5vh 0;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.5vh;
}

.socials a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  line-height: 0;
}

.socials a:hover {
  color: var(--text);
}

.socials svg {
  width: 20px;
  height: 20px;
}

#spotify-badge {
  margin-top: 2vh;
  width: 100%;
}

.spotify-main {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.spotify-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spotify-main:has(a:hover),
.spotify-main:has(button:hover) {
  border-color: var(--border-hov);
}

#spotify-badge a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  min-width: 0;
}

.spotify-progress-wrap {
  height: 3px;
  background: rgba(255,255,255,0.06);
}

#spotify-progress {
  height: 100%;
  background: #1DB954;
  transition: width 0.5s ease;
  width: 0%;
}

.spotify-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, background 0.2s;
}

.spotify-expand-btn:hover {
  color: var(--text);
  background: rgba(128,128,128,0.06);
}

.spotify-expand-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

#spotify-badge.expanded .spotify-expand-btn svg {
  transform: rotate(180deg);
}

#spotify-history {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    0.25s ease,
              margin-top 0.35s ease;
}

#spotify-badge.expanded #spotify-history {
  max-height: 300px;
  opacity: 1;
  margin-top: 4px;
}

.spotify-history-track {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.spotify-history-track:hover {
  border-color: var(--border-hov);
}

.spotify-history-track img {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}

.spotify-history-track .spotify-info {
  gap: 1px;
}

.spotify-history-track .spotify-info span:first-child {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-history-track .spotify-info span:last-child {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-cover {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}

.spotify-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#spotify-status-label {
  font-size: 10px;
  color: #1DB954;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

#spotify-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-artist {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-icon {
  flex-shrink: 0;
  color: #1DB954;
  display: flex;
  align-items: center;
}

.spotify-icon svg {
  width: 16px;
  height: 16px;
}

#display {
  margin-left: 25vw;
  padding: 4vh 3.5vw 6vh;
  min-height: 100vh;
}

#display h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-family: 'Parkinsans', sans-serif;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 3vh;
  letter-spacing: -0.01em;
}

#work {
  padding: 4vh 0 2vh;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 3vh;
}

.projects a {
  text-decoration: none;
  color: var(--text);
  display: flex;
}

.projects section {
  width: 100%;
  padding: 2.5vh 5%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.projects section:hover {
  cursor: pointer;
  border-color: var(--border-hov);
  box-shadow: var(--shadow);
}

.repo-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-word;
}

.repo-desc {
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.55;
  word-break: break-word;
}

.repo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.repos-loading {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-family: 'Parkinsans', sans-serif;
  font-size: 14px;
  padding: 2vh 0;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 150px;
  position: relative;
}

.project-card::before,
.link-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    200px circle at var(--mx, -999px) var(--my, -999px),
    rgba(255, 255, 255, 0.1),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.project-card:hover {
  border-color: var(--border-hov);
  box-shadow: var(--shadow);
}

.project-img {
  width: 120px;
  min-width: 120px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-img img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-info {
  flex: 1;
  padding: 16px 18px 14px;
}

.project-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-word;
}

.project-desc {
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-2);
  line-height: 1.55;
  word-break: break-word;
}

.project-buttons {
  display: flex;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
}

.project-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 8px;
  font-size: 12px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.2s, background 0.2s;
}

.project-btn:first-child {
  border-left: none;
}

.project-btn:hover {
  color: var(--text);
  background: rgba(128, 128, 128, 0.06);
}

.project-btn .btn-arrow,
.link-arrow {
  transition: transform 0.2s ease;
}

.project-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.project-btn .btn-arrow {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.snake-wrap {
  margin-top: 1vh;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-card);
}

.snake-wrap img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

#languages_section,
#links_section,
#career_section,
#interests_section,
#games_section,
#footer {
  position: relative;
}

#languages_section::before,
#links_section::before,
#career_section::before,
#interests_section::before,
#games_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 20%, var(--border) 100%);
}

#languages_section {
  padding: 4vh 0 2vh;
}

.lang-chart-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lang-svg {
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}

.lang-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-name {
  color: var(--text);
  font-weight: 500;
  min-width: 80px;
}

.lang-pct {
  color: var(--text-muted);
}

#links_section {
  padding: 4vh 0 2vh;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2vh 5%;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.link-card:hover {
  border-color: var(--border-hov);
  box-shadow: var(--shadow);
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--text-2);
}

.link-icon svg {
  width: 22px;
  height: 22px;
}

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

.link-name {
  font-size: 15px;
  font-weight: 600;
  display: block;
}

.link-handle {
  font-size: 12px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  display: block;
}

.link-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s ease;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-card:hover .link-arrow {
  color: var(--text);
  transform: translateX(4px);
}

#career_section {
  padding: 4vh 0 2vh;
}

.timeline {
}

.tl-item {
  display: flex;
  gap: 20px;
  padding-bottom: 3vh;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hov);
  flex-shrink: 0;
}

.tl-item--current .tl-dot {
  background: var(--text);
}

.tl-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
  min-height: 24px;
}

.tl-body {
  flex: 1;
  padding-bottom: 4px;
}

.tl-year {
  font-size: 12px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.tl-now {
  font-size: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  font-family: 'Parkinsans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.tl-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tl-desc {
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-2);
  line-height: 1.6;
}

#interests_section {
  padding: 4vh 0 2vh;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
}

.interest-chip:hover {
  color: var(--text);
  border-color: var(--border-hov);
}

.chip-icon {
  flex-shrink: 0;
}

.chip-icon--lucide {
  opacity: 0.7;
  stroke: currentColor;
}

#games_section {
  padding: 4vh 0 2vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
}

#games_section h1 {
  grid-column: 1;
}

#games_section .games-header {
  grid-column: 2;
  margin-bottom: 3vh;
}

#games_section .games-stats,
#games_section .games-grid,
#games_section .games-loading {
  grid-column: 1 / -1;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.games-loading {
  color: var(--text-muted);
  font-size: 14px;
}

.game-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.game-cover:hover {
  border-color: var(--border-hov);
}

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

.game-cover-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  font-size: 10px;
  line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  font-family: 'Parkinsans', sans-serif;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-cover:hover .game-cover-title {
  opacity: 1;
}

.game-cover--no-img .game-cover-title {
  opacity: 1;
  background: none;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11px;
}

.games-stats {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.games-header {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.games-steam-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.games-steam-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.games-steam-link:hover {
  color: var(--text-2);
}

.games-friendcode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.games-friendcode svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.games-friendcode:hover {
  color: var(--text-2);
}

.games-friendcode.copied {
  color: #55ff55;
}

.games-friendcode.copied .friendcode-copy-icon {
  display: none;
}

.friendcode-check-icon {
  display: none;
}

.games-friendcode.copied .friendcode-check-icon {
  display: block;
}

.chip-icon--img {
  object-fit: contain;
  opacity: 0.85;
}

#footer {
  padding: 2vh 0 2vh;
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4vh;
}

#footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

#footer a:hover {
  color: var(--text);
}

::-webkit-scrollbar          { width: 5px; height: 5px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--border-hov); border-radius: 3px; }

::selection {
  background: var(--text);
  color: var(--bg);
}

.desc-short { display: none; }
.desc-full  { display: inline; }

@media (min-width: 2400px) {
  #display {
    max-width: 1920px;
  }
}
@media (max-width: 1200px) {
  .projects {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  #profile {
    position: relative;
    width: 100%;
    max-width: unset;
    min-width: unset;
    height: auto;
    padding: 6vw 6vw 4vw;
    text-align: center;
    align-items: center;
    --panel-overlay: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, var(--bg) 95%);
  }

  .socials {
    justify-content: center;
  }

  #display {
    margin-left: 0;
    padding: 4vw 6vw 8vw;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }

  .desc-short { display: inline; }
  .desc-full  { display: none; }

  p.desc-expanded .desc-short { display: none; }
  p.desc-expanded .desc-full  { display: inline; }

  .desc-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
  }

  .desc-toggle:hover {
    color: var(--text);
  }
}

@media (max-width: 480px) {
  #display h1 {
    font-size: 30px;
  }
}

@media (max-width: 800px) {
  #games_section {
    grid-template-columns: 1fr;
  }

  #games_section .games-header {
    grid-column: 1;
    justify-content: flex-start;
    margin-top: -2vh;
    margin-bottom: 2vh;
  }
}

#impressum_section {
  padding: 4vh 0 2vh;
}

.imp-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  transition: color 0.2s;
  margin-bottom: 3vh;
}

.imp-back:hover { color: var(--text); }

.imp-back svg { width: 15px; height: 15px; }

.section-sub {
  font-size: 13px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-muted);
  margin-top: -1.5vh;
  margin-bottom: 3.5vh;
}

.imp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2.5vh 5%;
  margin-bottom: 16px;
}

.imp-card h2 {
  font-size: 12px;
  font-family: 'Parkinsans', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.imp-card p {
  font-size: 14px;
  font-family: 'Parkinsans', sans-serif;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.imp-card p:last-child { margin-bottom: 0; }

.imp-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.imp-card--note {
  border-style: dashed;
}

.imp-card--note p {
  font-size: 12px;
  color: var(--text-muted);
}

.imp-lang-notice {
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

#back-to-top.visible {
  opacity: 1;
}

#back-to-top:hover {
  color: var(--text);
  border-color: var(--border-hov);
}

#back-to-top svg {
  width: 16px;
  height: 16px;
}

@keyframes collapse-out {
  0%   { transform: translateY(0)     rotate(0deg);    opacity: 1;   }
  6%   { transform: translateY(-18px) rotate(-3deg);   opacity: 1;   }
  14%  { transform: translateY(14px)  rotate(2.5deg);  opacity: 1;   }
  22%  { transform: translateY(-10px) rotate(-2deg);   opacity: 1;   }
  30%  { transform: translateY(6px)   rotate(1deg);    opacity: 1;   }
  55%  { transform: translateY(130vh) rotate(18deg);   opacity: 0.1; }
  100% { transform: translateY(130vh) rotate(18deg);   opacity: 0;   }
}

@keyframes collapse-in {
  0%   { transform: translateY(-80px) rotate(-3deg);  opacity: 0; }
  35%  { transform: translateY(18px)  rotate(1.5deg); opacity: 1; }
  58%  { transform: translateY(-10px) rotate(-1deg);  opacity: 1; }
  78%  { transform: translateY(6px)   rotate(0.5deg); opacity: 1; }
  100% { transform: translateY(0)     rotate(0deg);   opacity: 1; }
}

#display.collapsing-out {
  animation: collapse-out 1.1s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
  pointer-events: none;
}

#display.collapsing-in {
  animation: collapse-in 1.0s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

#collapse-msg {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

@media (max-width: 800px) {
  #collapse-msg {
    padding-top: 50vh;
  }
}

#collapse-msg.visible {
  opacity: 1;
}

.collapse-line1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  font-family: 'Parkinsans', sans-serif;
}

.collapse-skull {
  display: inline-flex;
}

.collapse-skull svg {
  width: clamp(20px, 3vw, 32px);
  height: clamp(20px, 3vw, 32px);
}

.collapse-line2 {
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--text-muted);
  font-family: 'Parkinsans', sans-serif;
}

.page-nav {
  display: flex;
  justify-content: flex-end;
  padding-top: 2vh;
  margin-bottom: 4vh;
}

.page-nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'Parkinsans', sans-serif;
  transition: color 0.25s ease;
}

.page-nav-arrow:hover {
  color: var(--text);
}

.nav-line {
  width: 80px;
  height: 2px;
  background: var(--border-hov);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.page-nav-arrow:hover .nav-line {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-fade-in {
  animation: page-fade-in 0.4s ease both;
}

.nav-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-chevron svg {
  width: 18px;
  height: 18px;
}

.nav-label {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1;
}
