:root {
  --bg: #2e2e2e;
  --panel: #3a3a3a;
  --panel-2: #454545;
  --panel-3: #575757;
  --line: #6b6b6b;
  --text: #f2f2f2;
  --muted: #c9c9c9;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  --radius: 14px;
}

@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/Montserrat.ttf');
}

body {
  font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  min-height: 100vh;
}

.page-topbar {
  height: 96px;
  background: #252525;
  border-bottom: 1px solid #3f3f3f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-top: 8px;
  flex: 0 0 auto;
  margin-left: -8px;
}

.brand-version {
  font-size: 20px;
  color: #7d7d7d;
  margin-bottom: -4px;
  width: fit-content;
  border-bottom: 2px solid #6f6b75;
  border-right-width: 1px;
  margin-top: 4px;
  font-weight: 700;
  outline-offset: 1px;
  outline-width: 1.6px;
  text-underline-offset: 1px;
  text-underline-position: unset 1px;
  font-family:'Montserrat';
  margin-left: -5px;
}

.brand-sub {
  font-size: 64px;
  color: #c6c8d3;
  margin-top: 0px;
  white-space: nowrap;
  font-weight: 700;
  font-family:'Montserrat';
  margin-left: -8px;
  margin-top: -10px;
}

.github-btn {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #333333;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform 0.18s ease, background 0.18s ease;
}

.github-btn:hover {
  transform: scale(1.12);
  background: #424242;
}

.github-btn svg {
  width: 58px;
  height: 58px;
  fill: #fff;
}

.layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid #4d4d4d;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  background: #303030;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid #4f4f4f;
}

.panel-body {
  padding: 12px;
}

.sections-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.avatar-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #676767;
  border: 1px solid #5d5d5d;
}

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

.quick-links {
  display: flex;
  gap: 8px;
}

.small-btn {
  flex: 1;
  min-height: 32px;
  border-radius: 6px;
  background: #6f8cc3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.small-btn:hover {
  transform: scale(1.05);
  background: #6f8cc3;
}

.discord-btn {
  width: 100%;
  min-height: 42px; 
  border-radius: 6px;
  background: #6f8cc3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.discord-btn:hover {
  transform: scale(1.04);
  background: #6f8cc3;
}

.scroll-box {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.announcement-item {
  background: #454545;
  border: 1px solid #595959;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.announcement-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.announcement-text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.announcement-date {
  margin-top: 8px;
  font-size: 11px;
  color: #a8a8a8;
}

.content-panel {
  min-height: calc(100vh - 98px);
}

.hero {
  text-align: center;
  padding: 10px 14px 12px;
}

.hero-logo {
  max-width: min(100%, 760px);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-copy {
  margin-top: 8px;
  font-size: 18px;
  color: var(--muted);
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  margin: 16px 0 10px;
  padding-bottom: 8px;
  border-bottom: 3px solid #9c9c9c;
}

.grid {
  display: grid;
  gap: 12px;
}

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

.card {
  background: #494949;
  border: 1px solid #595959;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 9;
  background: #545454;
  display: grid;
  place-items: center;
  position: relative;
}

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

.placeholder {
  color: #e9e9e9;
  font-size: 30px;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 1px;
}

.card-body {
  padding: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}

.card-text {
  margin: 0;
  color: #ececec;
  font-size: 14px;
  line-height: 1.45;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #dcdcdc;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-weight: 700;
}

.right-nav {
  display: grid;
  gap: 10px;
}

.nav-btn {
  width: 100%;
  background: #505050;
  color: #fff;
  font-size: 15px;
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-btn:hover {
  transform: scale(1.01);
  transform: translateY(-1px);
  background: #5c5c5c;
}

.nav-btn.active {
  transform: scale(1.02);
  background: #606060;
}

.markdown {
  color: #f3f3f3;
  line-height: 1.6;
  font-size: 14px;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  margin: 0.8em 0 0.35em;
}

.markdown p {
  margin: 0.45em 0;
}

.markdown ul {
  margin: 0.5em 0 0.5em 1.25em;
}

.markdown li {
  margin: 0.25em 0;
}

@media (max-width: 1220px) {
  .layout {
    grid-template-columns: 300px 1fr;
  }

  .right-column {
    grid-column: 1 / -1;
  }

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

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

  .grid.games,
  .grid.projects,
  .grid.team,
  .grid.shop,
  .right-nav {
    grid-template-columns: 1fr;
  }

  .content-panel {
    min-height: auto;
  }

  .hero-logo {
    max-width: 100%;
  }
}