:root {
  --purple: #a78bfa;
  --purple-strong: #8b5cf6;
  --bg: #0f0f1a;
  --card: #181826;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #2a2a40;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/nunito/v32/XRXI3I6Li01BKofiOc5wtlZ2di8HDLshdTk3j6zbXWjgevT5.woff2) format('woff2');
  unicode-range: U +0460 -052F, U +1C80 -1C8A, U +20B4, U +2DE0 -2DFF, U + A640-A69F, U + FE2E-FE2F;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background:
  radial-gradient(circle at center, rgba(167,139,250,0.25), rgba(15,15,26,0) 70%),
  linear-gradient(to bottom, #0b0b14, var(--bg));
  min-height: 100vh;
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center;
  padding: 40px 20px;
  color: var(--text);
}


.card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(
  to bottom,
  rgba(255,255,255,0.04),
  rgba(255,255,255,0)
  ), var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  margin: auto;
}

.banner {
  position: relative;
  height: 150px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(24,24,38,0), var(--card));
}

.banner {
  position: relative;
}

.profile {
  text-align: center;
  padding: 0 20px 20px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--card);
  object-fit: cover;
  background: #111;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 0 8px;
}

.profile-text {
  text-align: left;
}

h1 {
  margin: 12px 0 4px;
  font-size: 1.4rem;
}

.bio {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--purple-strong);
  border-color: var(--purple-strong);
}

.page {
  display: none;
  animation: fadeIn 0.25s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: 14px;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  background: #1f1f33;
  color: white;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 4px rgba(139,92,246,0.35);
}

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

.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0.9;
}

.placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.games-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #1f1f33;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 4px rgba(139,92,246,0.35);
}

.game-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status.released {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.status.wip {
  background: rgba(234,179,8,0.15);
  color: #eab308;
}

.game-info h3 {
  margin: 0;
  font-size: 0.95rem;
}

.game-info p {
  margin: 4px 0 6px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: left;
}

.platforms {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.game-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #1f1f33;
  border: 1px solid var(--border);
}

.game-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-info h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.game-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}