
:root {
  --bg: #000000;
  --panel: transparent;
  --text: #f5f5f5;
  --muted: #9d9d9d;
  --line: rgba(255,255,255,0.12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px min(6vw, 56px);
  background: #000;
  border-bottom: 1px solid var(--line);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: .06em;
}

.lang-toggle {
  min-width: 58px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 24px;
}

.profile-card,
.game-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-card-wide {
  width: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
  padding: 32px;
  min-height: 220px;
}

.profile-wide-left {
  display: flex;
  justify-content: center;
}

.avatar-ring {
  width: 150px;
  height: 150px;
  border-radius: 999px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #151515;
  border: 1px solid rgba(255,255,255,.1);
}

.profile-wide-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.compact-head {
  min-height: 150px;
}

.section-title {
  padding: 18px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

#username {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: .98;
}

#bioText {
  margin: 0;
  color: #dfdfdf;
  font-size: 1.18rem;
  line-height: 1.75;
  max-width: 44ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  white-space: nowrap;
  background: transparent;
  color: var(--text);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 42px;
}

.game-card {
  overflow: hidden;
}

.game-trigger {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.game-content {
  padding: 20px;
}

.game-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.game-content h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.game-plus {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
}

.game-card.is-open .game-plus {
  transform: rotate(45deg);
  color: var(--text);
}

.game-content p {
  margin: 0 0 16px;
  color: #d5d5d5;
  line-height: 1.6;
  min-height: 76px;
}

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

.tags span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .86rem;
  background: transparent;
}

.game-actions {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height .24s ease, padding-bottom .24s ease;
}

.game-card.is-open .game-actions {
  max-height: 90px;
  padding-bottom: 20px;
}

.game-link {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--muted);
  background: #000;
}

@media (max-width: 900px) {
  .profile-card-wide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-wide-head {
    flex-direction: column;
    align-items: center;
  }

  #bioText {
    margin-left: auto;
    margin-right: auto;
  }

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

@media (max-width: 640px) {
  .topbar {
    padding-inline: 16px;
  }

  .topbar-right {
    gap: 10px;
  }

  .topbar nav {
    gap: 12px;
  }

  .topbar a {
    font-size: 0.88rem;
  }

  .profile-card-wide {
    padding: 22px;
  }

  .avatar-ring {
    width: 124px;
    height: 124px;
  }

  #username {
    font-size: 2.35rem;
  }

  #bioText {
    font-size: 1.02rem;
  }
}
