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

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
}

/* Layout: Sidebar + Content (from Marcio's left/right split) */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar: Team branding (inspired by Marcio's left section + Malta's clean info) */
.sidebar {
  width: 320px;
  background-color: #000;
  border-right: 1px solid #00ff00;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-size: 48px;
  font-weight: 600;
  color: #00ff00;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.team-meta {
  font-size: 14px;
  line-height: 1.8;
  color: #888;
}

.team-meta p {
  margin: 0;
}

/* Links section (Malta's clean nav style) */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.links a {
  color: #00ff00;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.links a:hover {
  color: #fff;
}

/* Main content: Physics canvas (from WrongFlag) */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #000;
}

.members-header {
  padding: 40px;
  border-bottom: 1px solid #111;
}

.members-header h2 {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.members-header .hint {
  font-size: 12px;
  color: #555;
}

#members-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
}

/* No-JS fallback members list */
.members-list {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.member-item {
  background: #0a0a0a;
  border: 1px solid #00ff00;
  border-radius: 8px;
  padding: 20px;
}

.member-item h3 {
  color: #00ff00;
  font-size: 18px;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.member-item p {
  margin: 0;
  font-size: 12px;
}

.member-item a {
  color: #00ff00;
  text-decoration: none;
}

.member-item a:hover {
  color: #fff;
}

/* Mobile responsive (from all three sites) */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #00ff00;
    padding: 30px 20px;
    height: auto;
  }

  .team-info {
    flex: none;
    margin-bottom: 20px;
  }

  .team-name {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .team-meta {
    font-size: 13px;
  }

  .links {
    flex-direction: row;
    gap: 16px;
    padding-top: 0;
    border-top: none;
  }

  .members-header {
    padding: 24px 20px;
  }

  .members-header h2 {
    font-size: 20px;
  }

  .content {
    flex: none;
    height: 800px;
  }
  
  #members-canvas {
    height: 100%;
  }
}
